Allow user to save without changing user's role
This commit is contained in:
@@ -21,6 +21,10 @@ class User(Base):
|
||||
first_name = Column(String)
|
||||
last_name = Column(String)
|
||||
|
||||
@property
|
||||
def role(self):
|
||||
return self.atat_role.name
|
||||
|
||||
@property
|
||||
def atat_permissions(self):
|
||||
return self.atat_role.permissions
|
||||
|
Reference in New Issue
Block a user