forked from wagtail/wagtail
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve filtering of audit logging based on the user's permissions
Until now, a user could see the audit log for all custom models, permissions haven't been checked yet. Now, only log entries of those content types are displayed, where the user has at least one permission. The change also adds filtering to the action-dropdown. This avoids showing unnecessary action types, e.g. actions which aren't used at all. All 3 uses of action-dropdowns (site history, page history, generic history) only display those actions, which are used at least once. This partially fixes wagtail#9181.
- Loading branch information
Showing
5 changed files
with
190 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters