You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by gc...@apache.org on 2022/08/19 21:03:29 UTC
[allura] 02/08: [#8451] record project creation in audit log
This is an automated email from the ASF dual-hosted git repository.
gcruz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
commit 7e37d1e388aaa1d24d414b1a372ae8a88d47b584
Author: Dillon Walls <di...@slashdotmedia.com>
AuthorDate: Fri Aug 5 19:31:18 2022 +0000
[#8451] record project creation in audit log
---
Allura/allura/lib/plugin.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py
index fb379b24d..30bf65286 100644
--- a/Allura/allura/lib/plugin.py
+++ b/Allura/allura/lib/plugin.py
@@ -1051,6 +1051,9 @@ class ProjectRegistrationProvider:
'private', False),
apps=apps or [] if 'tools' in project_template else None)
+ 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)
if 'groups' in project_template: