Opened 10 years ago

Closed 10 years ago

#3039 closed defect (fixed)

authentication docs myuser.permissions example wrong

Reported by: Phil Davis <pmd@…> 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: UI/UX:

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)

3039.diff (824 bytes) - added by James Bennett 10 years ago.
Patch fixing the docs

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by James Bennett

Attachment: 3039.diff added

Patch fixing the docs

comment:1 Changed 10 years ago by James Bennett

Triage Stage: UnreviewedReady for checkin

comment:2 Changed 10 years ago by Jacob

Resolution: fixed
Status: newclosed

(In [4633]) Fixed #3039: corrected example code in authentication.txt. Thanks, Ubernostrum.

Note: See TracTickets for help on using tickets.
Back to Top