mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 07:23:46 +00:00
Suppression du field chambre pour l'auto inscription et l'auto édition
This commit is contained in:
parent
be1c0cef22
commit
560fd6e723
1 changed files with 3 additions and 0 deletions
|
@ -543,6 +543,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):
|
||||
"""Contains the information of the ports' configuration for a switch"""
|
||||
|
|
Loading…
Reference in a new issue