Interface IServerPermissions
Retreives information about a user's permissions
Namespace: Innovator.Server
Assembly: Innovator.Client.dll
Syntax
public interface IServerPermissions
Properties
| Improve this Doc View SourceIsRootOrAdmin
Gets a value indicating whether this user is the root user or a admin.
Declaration
bool IsRootOrAdmin { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
| Improve this Doc View SourceEscalate(String)
Adds the identName
identity to the identity list of the current connection
Declaration
IDisposable Escalate(string identName)
Parameters
Type | Name | Description |
---|---|---|
System.String | identName | Name of the identity to add |
Returns
Type | Description |
---|---|
System.IDisposable | A System.IDisposable object. Calling System.IDisposable.Dispose() will return the identity list to its original state |
Identities()
Gets a list of identities that the current user is in.
Declaration
IEnumerable<string> Identities()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> | A list of identities that the current user is in. |
Identities(String)
Gets a list of identities that the user userId
is in.
Declaration
IEnumerable<string> Identities(string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | ID of the user to check |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> | A list of identities that the user |