This is an automated email from the ASF dual-hosted git repository. dill0wn pushed a commit to branch dw/8458 in repository https://gitbox.apache.org/repos/asf/allura.git
commit 5cff53c10b18c1c51dbbae4962bdd2076777b04d Author: Dillon Walls <[email protected]> AuthorDate: Wed Aug 31 21:00:54 2022 +0000 [#8458] audit log - log general tool POST /configure options to audit log --- Allura/allura/app.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Allura/allura/app.py b/Allura/allura/app.py index 49145ab2e..83ea1c94b 100644 --- a/Allura/allura/app.py +++ b/Allura/allura/app.py @@ -996,6 +996,13 @@ class DefaultAdminController(BaseController, AdminControllerMixin): except fev.Invalid as e: flash(f'{opt.name}: {str(e)}', 'error') continue + if self.app.config.options[opt.name] != val: + M.AuditLog.log('{}: set option "{}" {} => {}'.format( + self.app.config.options['mount_point'], + opt.name, + self.app.config.options[opt.name], + val + )) self.app.config.options[opt.name] = val if is_admin: # possibly moving admin mount point
