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 909e1cd6e2a5c1c69c3b4cb9d10b0da44aab26e9 Author: Dillon Walls <[email protected]> AuthorDate: Fri Aug 5 19:31:18 2022 +0000 [#8451] record project creation in audit log --- Allura/allura/lib/plugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py index fb379b24d..ac7cd42d5 100644 --- a/Allura/allura/lib/plugin.py +++ b/Allura/allura/lib/plugin.py @@ -1051,6 +1051,10 @@ class ProjectRegistrationProvider: 'private', False), apps=apps or [] if 'tools' in project_template else None) + with h.push_config(c, project=p, user=user): + M.AuditLog.log('Project Created!') + h.auditlog_user(f'Created project "{project_name}"', user=user) + # Setup defaults from neighborhood project template if applicable offset = p.next_mount_point(include_hidden=True) if 'groups' in project_template:
