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 f198e488888708bf941e09215406ae5e71d0007f
Author: Dillon Walls <[email protected]>
AuthorDate: Fri Aug 5 20:46:35 2022 +0000

    fixup! [#8451] record project creation in audit log
---
 Allura/allura/lib/plugin.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py
index ac7cd42d5..30bf65286 100644
--- a/Allura/allura/lib/plugin.py
+++ b/Allura/allura/lib/plugin.py
@@ -1051,9 +1051,8 @@ 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)
+        M.AuditLog(project_id=p._id, user_id=user._id, message='Project 
Created!',
+                   url=neighborhood.url_prefix + 'add_project')
 
         # Setup defaults from neighborhood project template if applicable
         offset = p.next_mount_point(include_hidden=True)

Reply via email to