mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-24 20:33:11 +00:00
[Printer] user.can_view(printer) = user.is_active
This commit is contained in:
parent
73ba578c74
commit
832db0c7a9
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ def can_view(user):
|
||||||
A couple (allowed, msg) where allowed is a boolean which is True if
|
A couple (allowed, msg) where allowed is a boolean which is True if
|
||||||
viewing is granted and msg is a message (can be None).
|
viewing is granted and msg is a message (can be None).
|
||||||
"""
|
"""
|
||||||
can = user.has_module_perms('printer')
|
can = user.is_active
|
||||||
return can, None if can else _("You don't have the right to view Printer"
|
return can, None if can else _("You don't have the right to view Printer"
|
||||||
" application.")
|
" application.")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue