-
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setting a different default access for a specific user didn't previously work because * the ACL must be sorted in reversed alphabetic order which means that an empty URL (ie. a default rule) must be last, and * the search for matching ACL rules stops when the top level domain of the a rule is alphabetically lower than the one searched for. Ie. given "default_access: allow" and the ACL: com,example)/ - {"access": "block"} - {"access": "block", "user": "unknown"} and searching for "http://iana.org", the last line would not be found so that the "unknown" user would still be "allowed".
- Loading branch information
Showing
5 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
com,example)/ - {"access": "block", "user": "staff"} | ||
com,example)/ - {"access": "allow", "user": "staff2"} | ||
- {"access": "block", "user": "staff2"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters