mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
366 B
12 lines
366 B
4 years ago
|
from common.utils.lock import DistributedLock
|
||
|
|
||
|
|
||
|
class UserGrantedTreeRebuildLock(DistributedLock):
|
||
|
name_template = 'perms.user.asset.node.tree.rebuid.<org_id:{org_id}>.<user_id:{user_id}>'
|
||
|
|
||
|
def __init__(self, org_id, user_id):
|
||
|
name = self.name_template.format(
|
||
|
org_id=org_id, user_id=user_id
|
||
|
)
|
||
|
super().__init__(name=name)
|