From 560fd6e7234857fb948bc3c1e61b01663dd5cd7d Mon Sep 17 00:00:00 2001 From: grisel-davy Date: Tue, 28 Aug 2018 23:46:51 +0200 Subject: [PATCH] =?UTF-8?q?Suppression=20du=20field=20chambre=20pour=20l'a?= =?UTF-8?q?uto=20inscription=20et=20l'auto=20=C3=A9dition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- topologie/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/topologie/models.py b/topologie/models.py index b63bece6..96f45163 100644 --- a/topologie/models.py +++ b/topologie/models.py @@ -542,6 +542,9 @@ class Room(AclMixin, RevMixin, models.Model): def __str__(self): return self.name + + def can_change(user_request,*_args, **_kwargs): + return user_request.has_perm('users.change_user') class PortProfile(AclMixin, RevMixin, models.Model):