can class references be used with grok.Role?

Bug #448282 reported by Martijn Faassen
6
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
Revision history for this message
trollfot (trollfot) wrote :

I'll add tests for that. It should be made consistent and accept both.

Revision history for this message
trollfot (trollfot) wrote :

There is a test for that, already, in grok.tests.security.permissions. It's clearly tested and it works.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.