WithPermissionOnlyAttribute
A class in Root.Township, Alta.Console.
Console requirement: the caller needs all the listed policies (for example server_owner).
- Listed in Console, logging and analytics
- Inherits or implements
RequirementAttribute
Constructors
| Member | What it is |
|---|---|
WithPermissionOnlyAttribute(params string[] roles) | Creates a WithPermissionOnlyAttribute from roles. |
Properties
| Member | What it is |
|---|---|
string[] Roles { get; set; } | The policies required. |
Methods
| Member | What it is |
|---|---|
override bool Check(CommandContext context) | True only if there is a calling user whose policies include every listed role. |
override string ToString() | Names the required roles. |