IModulesAccessResetDefaultAccess Method |
Reset the default access to 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 ResetDefaultAccess(
Guid moduleGuid
)
Function ResetDefaultAccess (
moduleGuid As Guid
) As IReturnValue
IReturnValue^ ResetDefaultAccess(
Guid moduleGuid
)
Parameters
- moduleGuid
- Type: SystemGuid
GUID of the module to reset
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.
Remarks
Under the hood, this action will remove the record
in the database.
BUT this could allow or disallow access to the module.
Reset the access of a user let it inherits
back-again the access from his user-profile.
See Also