Click or drag to resize

PermissionsChange Method (PermissionTo, Boolean)

Change the value of the specified `AskiaPortal` permission.
It will not save the change in the database unless you explicitly call the Save method.

Namespace:  AskiaPortalCmn.Common
Assembly:  AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax
public IReturnValue Change(
	PermissionTo item,
	bool isAllowed
)

Parameters

item
Type: AskiaPortalCmnPermissionTo
Indicates the `AskiaPortal` permission to modify
isAllowed
Type: SystemBoolean
Indicates the value to set

Return Value

Type: IReturnValue
It return unsuccess value, if the user in the context doesn't have enough permission to do this action

Implements

IPermissionsChange(PermissionTo, Boolean)
Remarks
Administrator allowed to modify the permission of a user, could not change permission higher than his own permission.
It will not save the change in the database unless you explicitly call the Save method.
See Also