Empty Superuser Permissions
The following:
user.get_all_permissions()
Returns an empty set for a superuser without any explicitly stated permissions.
Based on the definition on the admin page, a superuser has all permissions, implicitly.
Adding an explicit permission however does show up.
Thanks.
Change History
(10)
| Keywords: |
sprintdec2010 added
|
| Needs documentation: |
set
|
| Needs tests: |
set
|
| Owner: |
changed from nobody to anonymous
|
| Patch needs improvement: |
set
|
| Status: |
new → assigned
|
| Triage Stage: |
Unreviewed → Accepted
|
| Has patch: |
set
|
| Needs documentation: |
unset
|
| milestone: |
→ 1.3
|
| Needs tests: |
unset
|
| Patch needs improvement: |
unset
|
| Version: |
1.3-alpha → SVN
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
| Triage Stage: |
Accepted → Ready for checkin
|
However
user.has_perm('some permission')works despite the set not populating.