ISecurity.SetResourcePermission

Updates or creates a record in the Permissions table for the specified resource and role.

public void SetResourcePermission(string resourceName,
	string resourceID,
	IRole role,
	AccessRights right);

Parameters

resourceName
The name of the resource (persisted only for readability).

resourceID
The identifier (Guid or Name) of the resource.

role
The role.

right
The access level to assign to the role for the resource.

Overloads:


See also:

Interface ISecurity