Skip to main content
A newer version of this page is available. .

IOperationPermissionProvider.GetPermissions() Method

Returns permissions that are directly assigned to the current object.

Namespace: DevExpress.ExpressApp.Security

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

IEnumerable<IOperationPermission> GetPermissions()

Returns

Type Description
IEnumerable<IOperationPermission>

An IEnumerable<IOperationPermission> list of permissions that are directly assigned to the current object.

Remarks

This method returns permissions owned by the current IOperationPermissionProvider object (not recursively). When implementing the IOperationPermissionProvider interface in a custom User class, return the empty list in this method, as permissions are not assigned to users directly (they are assigned via Roles). When implementing the IOperationPermissionProvider interface in a custom Role class, return the list of permissions that are directly assigned (do not include permissions from child Roles).

See Also