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.
11 lines
361 B
11 lines
361 B
from common.utils.lock import DistributedLock |
|
|
|
|
|
class UserGrantedTreeRebuildLock(DistributedLock): |
|
name_template = 'perms.user.asset.node.tree.rebuid.<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)
|
|
|