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.
9 lines
340 B
9 lines
340 B
from common.utils.lock import DistributedLock |
|
|
|
|
|
class UserGrantedTreeRebuildLock(DistributedLock): |
|
name_template = 'perms.user.asset.node.tree.rebuild.<user_id:{user_id}>' |
|
|
|
def __init__(self, user_id): |
|
name = self.name_template.format(user_id=user_id) |
|
super().__init__(name=name, release_on_transaction_commit=True)
|
|
|