SecurityStrategy.IsGranted(IList<IPermissionRequest>) Method
Checks whether the specified operations are allowed.
Namespace: DevExpress.ExpressApp.Security
Assembly: DevExpress.ExpressApp.Security.v24.2.dll
NuGet Package: DevExpress.ExpressApp.Security
#Declaration
public virtual IList<bool> IsGranted(
IList<IPermissionRequest> permissionRequests
)
#Parameters
Name | Type | Description |
---|---|---|
permission |
IList<IPermission |
An IList |
#Returns
Type | Description |
---|---|
IList<Boolean> | true, when the operations are allowed; otherwise, false. |
#Remarks
Tip
You can also use the Is
The passed Permission Requests should have an appropriate Permission Request Processors registered within the Security Strategy. To register a Permission Request, handle the SecurityStrategy.CustomizeRequestProcessors event. Refer to the How to: Implement Custom Security Objects (Users, Roles, Operation Permissions) topic to see an example.