Opened 18 years ago
Closed 18 years ago
#3039 closed defect (fixed)
authentication docs myuser.permissions example wrong
Reported by: | Owned by: | Jacob | |
---|---|---|---|
Component: | Documentation | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The name of the user permissions member is 'user_permissions', not 'permissions' so the example code (around line 873) in docs/authentication.txt should be:
myuser.user_permissions = [permission_list] myuser.user_permissions.add(permission, permission, ...) myuser.user_permissions.remove(permission, permission, ...] myuser.user_permissions.clear()
Attachments (1)
Change History (3)
by , 18 years ago
comment:1 by , 18 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch fixing the docs