C# Class ScrewTurn.Wiki.AclEngine.AclEvaluator

Implements tools for evaluating permissions.
Datei anzeigen Open project: mono/ScrewTurnWiki

Public Methods

Method Description
AuthorizeAction ( string resource, string action, string user, string groups, AclEntry entries ) : Authorization

Decides whether a user, member of some groups, is authorized to perform an action on a resource.

Method Details

AuthorizeAction() public static method

Decides whether a user, member of some groups, is authorized to perform an action on a resource.
If , , , or are null. If , , are empty, or if equals .
public static AuthorizeAction ( string resource, string action, string user, string groups, AclEntry entries ) : Authorization
resource string The resource.
action string The action on the resource.
user string The user, in the form 'U.Name'.
groups string The groups the user is member of, in the form 'G.Name'.
entries AclEntry The available ACL entries for the resource.
return Authorization