8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 11:53:12 +00:00

Fix can_view extra arg for logs

This commit is contained in:
Gabriel Detraz 2019-09-17 19:09:31 +02:00 committed by chirac
parent d3310866cd
commit 17704fce9c

View file

@ -521,7 +521,7 @@ def history(request, application, object_name, object_id):
'users:profil',
kwargs={'userid': str(request.user.id)}
))
can, msg = instance.can_view(request.user)
can, msg, _extra_msg = instance.can_view(request.user)
if not can:
messages.error(request, msg or _("You don't have the right to access this menu."))
return redirect(reverse(