C# Класс ScrewTurn.Wiki.AclEngine.AclEvaluator

Implements tools for evaluating permissions.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

AuthorizeAction() публичный статический Метод

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.
Результат Authorization