Modify ↓
Opened 4 years ago
Closed 4 years ago
#13942 closed defect (fixed)
[PATCH] Second and subsequent of rules are ignored
Reported by: | Andrew G. Khodotov | Owned by: | Cauly |
---|---|---|---|
Priority: | normal | Component: | TracConfigurablePermissionPlugin |
Severity: | critical | Keywords: | |
Cc: | Trac Release: | 1.2 |
Description
Only first rule will be appyed to a ticket. In this way Example 1 in the wiki is incorrect: second variation with two rules is unfunctional, unlike the first.
Simple test:
rule1 = ticket, TICKET_VIEW, *, *, deny rule2 = ticket, TICKET_VIEW, *, *, allow
Always denied.
rule1 = ticket, TICKET_VIEW, *, *, allow rule2 = ticket, TICKET_VIEW, *, *, deny
Always allowed.
Attached patch has solve the problem with 'ticket' realm. I think with 'wiki' will be the same bug, but I do not use this realm.
Attachments (1)
Change History (2)
Changed 4 years ago by
Attachment: | configurable_permission_SeveralRules.patch added |
---|
comment:1 Changed 4 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Hi, I merged the patch and applied the change to wiki also. Thanks a lot for your feedback!