Opened 8 years ago

Closed 8 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 ubernostrum 8 years ago.
Patch fixing the docs

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by ubernostrum

Patch fixing the docs

comment:1 Changed 8 years ago by ubernostrum

  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 8 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

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

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