mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-27 10:29:36 +00:00
* perf: 工作台受组织角色控制 * perf: workspace => workbench * perf: 修改 workspace codename Co-authored-by: ibuler <ibuler@qq.com>
25 lines
661 B
Python
25 lines
661 B
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
|
|
from common.mixins.api import RoleAdminMixin as _RoleAdminMixin
|
|
from common.mixins.api import RoleUserMixin as _RoleUserMixin
|
|
from orgs.utils import tmp_to_root_org
|
|
|
|
|
|
class AppRoleAdminMixin(_RoleAdminMixin):
|
|
rbac_perms = (
|
|
('list', 'perms.view_userapp'),
|
|
('retrieve', 'perms.view_userapps'),
|
|
('get_tree', 'perms.view_userapps'),
|
|
('GET', 'perms.view_userapps'),
|
|
)
|
|
|
|
|
|
class AppRoleUserMixin(_RoleUserMixin):
|
|
rbac_perms = (
|
|
('list', 'perms.view_myapps'),
|
|
('retrieve', 'perms.view_myapps'),
|
|
('get_tree', 'perms.view_myapps'),
|
|
('GET', 'perms.view_myapps'),
|
|
)
|