mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-23 13:18:35 +00:00
add impersonator
attribute to UserModelSchema
This commit is contained in:
parent
cfa1431164
commit
8d504c7550
@ -61,8 +61,10 @@ class UserModelSchema(SQLAlchemyAutoSchema):
|
||||
uid = fields.String()
|
||||
is_admin = fields.Method('get_is_admin', dump_only=True)
|
||||
ldap_info = fields.Nested(LdapSchema)
|
||||
impersonator = fields.Nested('self', many=False, allow_none=True)
|
||||
|
||||
def get_is_admin(self, obj):
|
||||
@staticmethod
|
||||
def get_is_admin(obj):
|
||||
return obj.is_admin()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user