fix acl resource_type

This commit is contained in:
pycook
2019-11-23 17:24:43 +08:00
parent 4c7deee866
commit 6c4eefa9c0
3 changed files with 28 additions and 4 deletions

View File

@@ -119,6 +119,8 @@ class RoleCRUD(object):
@staticmethod
def update_role(rid, **kwargs):
kwargs.pop('app_id', None)
role = Role.get_by_id(rid) or abort(404, "Role <{0}> does not exist".format(rid))
RoleCache.clean(rid)