C# 클래스 ScrewTurn.Wiki.AclEngine.AclEvaluator

Implements tools for evaluating permissions.
파일 보기 프로젝트 열기: mono/ScrewTurnWiki

공개 메소드들

메소드 설명
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