mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
Fix can_view extra arg for logs
This commit is contained in:
parent
d3310866cd
commit
17704fce9c
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue