UserPermissions
A static class in Alta.Authentication, the global namespace.
Permission name constants and checks against the logged-in user's API policies. Checks the local logged-in account, so it is mainly a client thing.
- Listed in Other Alta assemblies
Fields
1 private and internal field
| Member | What it is |
|---|---|
private static readonly Lazy<IHighLevelApiClient> apiClient | Lazily resolved API client used to read the logged-in user. |
Methods
| Member | What it is |
|---|---|
static PlayerSubscriberStatus GetPlayerSubscriberStatus() | Returns Developer if the logged-in user has debug_features, otherwise None. |
static bool HasPermission(string permission) | Whether the logged-in user's policies include the given name. False when nobody is logged in. |