mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Fixed a small bug added during the last commit
This commit is contained in:
@@ -219,8 +219,8 @@ def add_note(request, applicationid):
|
||||
def add_message(request, applicationid):
|
||||
""" Send a message to the end user and note it on the application """
|
||||
|
||||
if check_permissions(request.user, app):
|
||||
app = Application.objects.get(id=applicationid)
|
||||
if check_permissions(request.user, app):
|
||||
if request.method == 'POST':
|
||||
obj = Audit(application=app, user=request.user, event=AUDIT_EVENT_MESSAGE)
|
||||
form = AdminNoteForm(request.POST, instance=obj, application=app)
|
||||
|
||||
Reference in New Issue
Block a user