Add listener to User model to record permission set updates and update user audit log template

This commit is contained in:
leigh-mil
2019-08-08 15:52:23 -04:00
parent b26d8d575c
commit e59e3b959c
3 changed files with 22 additions and 0 deletions

View File

@@ -1,4 +1,11 @@
{% extends "audit_log/events/_base.html" %}
{% block content %}
{% if event.changed_state and 'permission_sets' in event.changed_state.keys() %}
{% if event.changed_state['permission_sets'][1] == [] %}
CCPO superuser access removed
{% else %}
CCPO superuser access granted
{% endif %}
{% endif %}
{% endblock %}