From 10c1c4d0c635edf54843ea8afc09a16780415324 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Fri, 1 Dec 2017 02:28:55 +0100 Subject: [PATCH] Error synthaxe --- users/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/models.py b/users/models.py index 9db01879..0a44cf96 100644 --- a/users/models.py +++ b/users/models.py @@ -972,7 +972,7 @@ class Right(models.Model): return str(self.user) def can_create(user, *args, **kwargs): - return user.has_perms('bureau'), u"Vous n'avez pas le droit de\ + return user.has_perms(('bureau',)), u"Vous n'avez pas le droit de\ créer des droits"