C# 클래스 ScrewTurn.Wiki.AuthChecker

Utility class for checking permissions and authorizations.
All the methods in this class implement a security bypass for the admin user.
파일 보기 프로젝트 열기: mono/ScrewTurnWiki 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
CheckActionForDirectory ( IFilesStorageProviderV30 provider, string directory, string action, string currentUser, string groups ) : bool

Checks whether an action is allowed for a directory.

CheckActionForGlobals ( string action, string currentUser, string groups ) : bool

Checks whether an action is allowed for the global resources.

CheckActionForNamespace ( NamespaceInfo nspace, string action, string currentUser, string groups ) : bool

Checks whether an action is allowed for a namespace.

CheckActionForPage ( System.PageInfo page, string action, string currentUser, string groups ) : bool

Checks whether an action is allowed for a page.

메소드 상세

CheckActionForDirectory() 공개 정적인 메소드

Checks whether an action is allowed for a directory.
public static CheckActionForDirectory ( IFilesStorageProviderV30 provider, string directory, string action, string currentUser, string groups ) : bool
provider IFilesStorageProviderV30 The provider that manages the directory.
directory string The full path of the directory.
action string The action the user is attempting to perform.
currentUser string The current user.
groups string The groups the user is member of.
리턴 bool

CheckActionForGlobals() 공개 정적인 메소드

Checks whether an action is allowed for the global resources.
public static CheckActionForGlobals ( string action, string currentUser, string groups ) : bool
action string The action the user is attempting to perform.
currentUser string The current user.
groups string The groups the user is member of.
리턴 bool

CheckActionForNamespace() 공개 정적인 메소드

Checks whether an action is allowed for a namespace.
public static CheckActionForNamespace ( NamespaceInfo nspace, string action, string currentUser, string groups ) : bool
nspace NamespaceInfo The current namespace (null for the root).
action string The action the user is attempting to perform.
currentUser string The current user.
groups string The groups the user is member of.
리턴 bool

CheckActionForPage() 공개 정적인 메소드

Checks whether an action is allowed for a page.
public static CheckActionForPage ( System.PageInfo page, string action, string currentUser, string groups ) : bool
page System.PageInfo The current page.
action string The action the user is attempting to perform.
currentUser string The current user.
groups string The groups the user is member of.
리턴 bool