mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-11 20:29:40 +00:00
per: gather account perm (#9723)
Co-authored-by: feng <1304903146@qq.com> Co-authored-by: feng626 <57284900+feng626@users.noreply.github.com>
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
#!/usr/bin/python
|
||||
import os
|
||||
from typing import Callable
|
||||
|
||||
from django.apps import apps
|
||||
from django.conf import settings
|
||||
from django.db.models import F
|
||||
from django.utils.translation import gettext_lazy as _, gettext, get_language
|
||||
from treelib import Tree
|
||||
from treelib.exceptions import NodeIDAbsentError
|
||||
|
||||
from django.utils.translation import gettext_lazy as _, gettext, get_language
|
||||
from django.conf import settings
|
||||
from django.apps import apps
|
||||
from django.db.models import F, Count
|
||||
|
||||
from common.tree import TreeNode
|
||||
from .models import Permission, ContentType
|
||||
|
||||
@@ -77,6 +76,7 @@ special_pid_mapper = {
|
||||
"accounts.pushaccountautomation": "push_account_node",
|
||||
"accounts.view_pushaccountexecution": "push_account_node",
|
||||
"accounts.add_pushaccountexecution": "push_account_node",
|
||||
"accounts.gatheredaccount": "gather_account_node",
|
||||
"accounts.gatheraccountsautomation": "gather_account_node",
|
||||
"accounts.view_gatheraccountsexecution": "gather_account_node",
|
||||
"accounts.add_gatheraccountsexecution": "gather_account_node",
|
||||
|
Reference in New Issue
Block a user