From 832db0c7a96448084d857ad6dc05a3557851e602 Mon Sep 17 00:00:00 2001 From: Maxime Bombar Date: Sun, 28 Oct 2018 23:10:41 +0100 Subject: [PATCH] [Printer] user.can_view(printer) = user.is_active --- printer/acl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printer/acl.py b/printer/acl.py index 9fa7be38..d30a1d82 100644 --- a/printer/acl.py +++ b/printer/acl.py @@ -15,7 +15,7 @@ def can_view(user): A couple (allowed, msg) where allowed is a boolean which is True if 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" " application.")