Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
simple-survey
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
simple-survey
Commits
0f2ea227
Commit
0f2ea227
authored
Sep 14, 2018
by
adrtel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added audit events on related_object_id and context_id
parent
3b08fa8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
process-response.tcl
www/process-response.tcl
+9
-1
No files found.
www/process-response.tcl
View file @
0f2ea227
...
...
@@ -374,12 +374,20 @@ db_transaction {
}
# Audit
# Create direct audits on the object, but also create
# "after_update" events on the related objects
# (typically project + user
)
, so you can write rules there.
#
if
{
$create
_response_p
}
{
im_audit -object_id
$response
_id -object_type
"survsimp_response"
-action after_create
}
else
{
im_audit -object_id
$response
_id -object_type
"survsimp_response"
-action after_update
}
im_audit -object_id
$related
_object_id -action after_update
im_audit -object_id
$related
_context_id -action after_update
#
# Survey type-specific stuff
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment