Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MVC, obey 'user-config-readonly' for subclasses of ApiMutableModelCon…
…trollerBase. Eventually (19.7?), user-config-readonly should go to the features of past times, it has has quite some downsides and will keep haunting everybody as long as it's there. This patch makes sure ApiMutableModelControllerBase->save() adds an additional ACL check before doing the actual save, raising a user exception when not allowed. Not all our classes use this, but can probably do so, same counts for plugins. We are not, under any circumstances, are going to move an acl check to the Config or model classes, since these have no relationship with the user.
- Loading branch information
1 parent
64c4d89
commit 3af0219
Showing
1 changed file
with
16 additions
and
11 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