Opened 17 years ago

Closed 17 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: 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)

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

Download all attachments as: .zip

Change History (3)

by James Bennett, 17 years ago

Attachment: 3039.diff added

Patch fixing the docs

comment:1 by James Bennett, 17 years ago

Triage Stage: UnreviewedReady for checkin

comment:2 by Jacob, 17 years ago

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