mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-14 06:19:17 +00:00
fix: 修复用户绑定角色重大bug
This commit is contained in:
@@ -299,16 +299,16 @@ class RoleManager(models.Manager):
|
||||
|
||||
class OrgRoleManager(RoleManager):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
from rbac.const import Scope
|
||||
self.scope = Scope.org
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
|
||||
class SystemRoleManager(RoleManager):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
from rbac.const import Scope
|
||||
self.scope = Scope.system
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
|
||||
class RoleMixin:
|
||||
|
Reference in New Issue
Block a user