Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#17131 closed Bug (fixed)

Permissions documentation not up to date

Reported by: David Chandek-Stark Owned by: mateusgondim
Component: Documentation Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

https://docs.djangoproject.com/en/dev/topics/auth/#permissions says:

Permissions are set globally per type of object, not per specific object instance. For example, it's possible to say "Mary may change news stories," but it's not currently possible to say "Mary may change news stories, but only the ones she created herself" or "Mary may only change news stories that have a certain status, publication date or ID." The latter functionality is something Django developers are currently discussing.

However, the ModelAdmin class provides has_add_permission, has_change_permission and has_delete_permission methods.

Attachments (1)

ticket17131.diff (1.1 KB) - added by mateusgondim 4 years ago.
I replaced the outdated text in auth.txt with a text talking about the possibility of permissions per specific object instance.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 5 years ago by Luke Plant

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

comment:2 Changed 4 years ago by mateusgondim

Owner: changed from nobody to mateusgondim

Changed 4 years ago by mateusgondim

Attachment: ticket17131.diff added

I replaced the outdated text in auth.txt with a text talking about the possibility of permissions per specific object instance.

comment:3 Changed 4 years ago by mateusgondim

Has patch: set

comment:4 Changed 4 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: newclosed

In [8d3e501502c308cbdd3cc95b62ace0fe11d373ab]:

Fixed #17131 - Added per object permission notes to docs.

Thanks dchandek for the suggestion and mateusgondim for the patch.

comment:5 Changed 4 years ago by Tim Graham <timograham@…>

In [fa6577f5b2af9848b661fc24719b59e07d214728]:

Fixed #17131 - Added per object permission notes to docs.

Thanks dchandek for the suggestion and mateusgondim for the patch.

Backport of 8d3e501502c308cbdd3cc95b62ace0fe11d373ab from master

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