Click or drag to resize

IModulesAccessDisallowAccess Method

Disallow the user or the user profile to access the specified module.
It will not save the change in the database unless you explicitly call the Save from the current object or the user/user profile.

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

Parameters

moduleGuid
Type: SystemGuid
GUID of the module to diallow

Return Value

Type: IReturnValue
Return unsuccess value, if the user in the context doesn't have enough permission to do that action
Return unsuccess value, if the user in the context doesn't have the permission to access the specified module.
Remarks
The user in the context must himself have an access to the module.
It will not save the change in the database unless you explicitly call the Save from the current object or the user/user profile.
See Also