diff options
author | Guillaume Turri <guillaume.turri@gmail.com> | 2019-09-27 21:49:32 +0200 |
---|---|---|
committer | Guillaume Turri <guillaume.turri@gmail.com> | 2019-09-27 21:49:32 +0200 |
commit | 3f1e00378d8387350fed140c5c42fea17ed9ef7a (patch) | |
tree | 8e62455f2c636f8c38eafac6ee87798d3fee72a2 /lib/plugins/acl/script.js | |
parent | af3a352caac697add659c226ca7a67cc0c689ddd (diff) | |
download | dokuwiki-3f1e00378d8387350fed140c5c42fea17ed9ef7a.tar.gz dokuwiki-3f1e00378d8387350fed140c5c42fea17ed9ef7a.zip |
Fix #1115
without this patch calling _acl_add may result in a corrupted acl.auth.php file.
This is the case when we're adding a config for a user and a scope with an
existing config.
The fix is just to call the _acl_del method before perming the addition.
Note that this _acl_add method is currently called from two places:
- from admin_plugin_acl.handle() which was explicitely calling _acl_del before
- from remote_plugin_acl.addAcl, which can actually result in a corrupted file
Diffstat (limited to 'lib/plugins/acl/script.js')
0 files changed, 0 insertions, 0 deletions