PermissionsGetLevel Method (String, NullableGuid) |
Returns the value of the specified permission.
Namespace:
AskiaPortalCmn.Common
Assembly:
AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax public AccessLevel GetLevel(
string key,
Nullable<Guid> moduleGuid = null
)
Public Function GetLevel (
key As String,
Optional moduleGuid As Nullable(Of Guid) = Nothing
) As AccessLevel
public:
virtual AccessLevel GetLevel(
String^ key,
Nullable<Guid> moduleGuid = nullptr
) sealed
Parameters
- key
- Type: SystemString
Key of the permission to obtain. - moduleGuid (Optional)
- Type: SystemNullableGuid
GUID of the module that contains the permission.
It uses the current module CurrentModule if the value is null
Return Value
Type:
AccessLevelThe permission value associated with the item.
Implements
IPermissionsGetLevel(String, NullableGuid)Remarks
If the permission is not defined,
it always return
None
by default.
If the user is a super administrator,
it always return
FullControl
by default.
See Also