can class references be used with grok.Role?
Bug #448282 reported by
Martijn Faassen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grok |
Invalid
|
Medium
|
trollfot | ||
1.1 |
Invalid
|
Undecided
|
trollfot |
Bug Description
grok.require lets you refer to grok.Permission classes directly as well as the older name-based reference. I've (finally) updated the reference documentation to reflect this. I wonder however whether the same applies to the grok.permissions() directive as it is used in grok.Role. Does this accept class references? It doesn't appear to be tested, and some cursory messing around with tests didn't seem to confirm it worked.
Changed in grok: | |
milestone: | none → 1.1 |
importance: | Undecided → Medium |
To post a comment you must log in.
I'll add tests for that. It should be made consistent and accept both.