fix acl resource_type

This commit is contained in:
pycook
2019-11-23 17:24:43 +08:00
parent 0247b729b7
commit 59c00e63d6
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)