public ExtensionWhitelist(IEnumerable <String> extensions, IPathPermissions next = null) : base(next) { this.extensions = new List <string>(extensions); }
public DraftFilePermissions(IHttpContextAccessor contextAccessor, IPathPermissions next = null) : base(next) { this.context = contextAccessor.HttpContext; }
public PathBlacklist(PathList pathList, IPathPermissions next = null) : base(next) { this.pathList = pathList; }
public MustHaveGitDraftFile(GitDraftManager draftManager, IPathPermissions next = null) : base(next) { this.draftManager = draftManager; }
/// <summary> /// Constructor. /// </summary> /// <param name="next">The next permission in the chain.</param> public PathPermissionChain(IPathPermissions next) { this.next = next; }
/// <summary> /// Constructor. /// </summary> /// <param name="draftIdentfier">The path permissions to use to determine if a path can be drafted. Blacklist paths you don't want to support drafting.</param> public GitDraftManager(IPathPermissions draftIdentfier) { this.draftIdentfier = draftIdentfier; }