PermissionsCan Method (PermissionTo) |
Returns the value of the specified
`AskiaPortal` permission as boolean.
Namespace:
AskiaPortalCmn.Common
Assembly:
AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax public bool Can(
PermissionTo item
)
Public Function Can (
item As PermissionTo
) As Boolean
public:
virtual bool Can(
PermissionTo item
) sealed
Parameters
- item
- Type: AskiaPortalCmnPermissionTo
Indicates the `AskiaPortal` permission to obtain.
Return Value
Type:
BooleanThe permission value associated with the item as boolean.
Implements
IPermissionsCan(PermissionTo)Remarks
If the permission is not defined,
it always return `false` by default.
If the user is a super administrator,
it always return `true` by default.
See Also