Rename app_role_id to role_id
This commit is contained in:
parent
0ef90ecc1e
commit
75b18bada8
1 changed files with 1 additions and 1 deletions
|
@ -65,6 +65,6 @@ class UserService:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def __insertAppRoleToUser(userId, userRes):
|
def __insertAppRoleToUser(userId, userRes):
|
||||||
app_role = AppRole.query.filter_by(user_id=userId).first()
|
app_role = AppRole.query.filter_by(user_id=userId).first()
|
||||||
userRes["traits"]["app_role_id"] = app_role.role_id if app_role else None
|
userRes["traits"]["role_id"] = app_role.role_id if app_role else None
|
||||||
|
|
||||||
return userRes
|
return userRes
|
||||||
|
|
Loading…
Reference in a new issue