CurrentUserHasKey
Qubes 10.0 Tests if the current user has a particular access key.
Syntax
CurrentUserHasKey(key)
key = the access key to test for
Remarks
Note: This function is evaluated statically server-side, the key parameter should thus be a constant.
When no user is connected, the function returns False.
For a list of access keys, see scrwiki.
Example
This enables A1 when the current user can administrate users
A1.Enabled =CurrentUserHasKey('AK_Legacy\Users')