#3222 closed defect (fixed)
[Patch] Allow group names to have *some* upper-case letters
Reported by: | Owned by: | Ryan J Ollos | |
---|---|---|---|
Priority: | normal | Component: | PrivateTicketsPlugin |
Severity: | minor | Keywords: | groups |
Cc: | Trac Release: | 0.10 |
Description
Line 125 of policy.py has the following code:
if subject in groups and action.islower() and action not in groups
This assumes that group names are all lower-case, but that's not necessarily true -- the help text on the "permissions" page in Admin says (emphasis added):
"Note that Subject or Group names can't be all upper cased, as this is reserved for permission names."
Some of our group names have upper case characters in them, and so I had to change line 125 to read:
if subject in groups and not action.isupper() and action not in groups
That change made it work nicely with our setup. Great plugin, by the way -- extremely useful :-)
Attachments (0)
Change History (9)
comment:1 Changed 14 years ago by
Summary: | Group names can have upper-case letters → Allow group names to have *some* upper-case letters |
---|
comment:3 Changed 14 years ago by
Owner: | changed from Noah Kantrowitz to Ryan J Ollos |
---|---|
Status: | new → assigned |
Summary: | Allow group names to have *some* upper-case letters → [Patch] Allow group names to have *some* upper-case letters |
comment:4 Changed 14 years ago by
comment:5 Changed 13 years ago by
The fix in [9814] is consistent with similar code in the Trac source for DefaultPermissionStore.get_user_permissions
:
comment:6 Changed 13 years ago by
This ticket will be left open for feedback and resolved with milestone 2.1 (#9964)
comment:7 Changed 12 years ago by
Status: | assigned → new |
---|
comment:8 Changed 11 years ago by
Status: | new → assigned |
---|
comment:9 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
#5165 closed as a duplicate.