mirror of https://github.com/jumpserver/jumpserver
parent
a7d0e3ce70
commit
a09a59e7b3
|
@ -224,6 +224,8 @@ class RoleManager(models.Manager):
|
|||
RoleBinding.objects.bulk_create(items, ignore_conflicts=True)
|
||||
except Exception as e:
|
||||
logger.error('Create role binding error: {}'.format(e))
|
||||
finally:
|
||||
self.user.expire_users_rbac_perms_cache()
|
||||
|
||||
def set(self, roles):
|
||||
self.clear()
|
||||
|
|
Loading…
Reference in New Issue