Click or drag to resize

IModulesAccessCanAccess Method

Returns true if the user can access the module with the specified GUID.

Namespace:  AskiaPortalCmn.Common
Assembly:  AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax
bool CanAccess(
	Guid moduleGuid
)

Parameters

moduleGuid
Type: SystemGuid
GUID of the module to verify

Return Value

Type: Boolean
Returns true if the user can access the module
Remarks
This method will check if the user can access the module.
If the user can access all modules or IsSuperAdmin, this method will always return true.
If the specified GUID also match the special `AskiaPortal` GUID, this method will also return true.
See Also