This is an automated email from the ASF dual-hosted git repository. dill0wn pushed a commit to branch dw/8451 in repository https://gitbox.apache.org/repos/asf/allura.git
commit 6b854e3893432518333b81e2823999aee42457af Author: Dillon Walls <[email protected]> AuthorDate: Fri Aug 5 21:03:18 2022 +0000 [#8451] record tool renames in audit log --- Allura/allura/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Allura/allura/app.py b/Allura/allura/app.py index fef1e6e37..ef66c7ba2 100644 --- a/Allura/allura/app.py +++ b/Allura/allura/app.py @@ -944,7 +944,12 @@ class DefaultAdminController(BaseController, AdminControllerMixin): """ require_access(self.app, 'configure') + old_label = self.app.config.options['mount_label'] self.app.config.options['mount_label'] = mount_label + model.AuditLog.log('updated label: "{}" => "{}" for {}'.format( + old_label, + mount_label, + self.app.config.options['mount_point'])) g.post_event('project_menu_updated') redirect(six.ensure_text(request.referer or '/'))
