Admin documentation lists all models, even for users without access to certain applications
|Reported by:||chriscohoat||Owned by:||Grzegorz Szczepańczyk|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||no|
By default, the admin docs lists documentation for all models. Some users may not have access to models that are still listed in their entirety.
The easiest way to fix this was to check each model in the model index, and only add the model to the listing if a user has the correct permissions. I'm not sure if this is the correct way to go about this, but I'm submitting the patch for review.
Change History (14)
comment:1 Changed 4 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Accepted|