Code

Opened 7 years ago

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

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by ubernostrum

Patch fixing the docs

comment:1 Changed 7 years ago by ubernostrum

  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 7 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.