mirror of https://github.com/jumpserver/jumpserver
fix: 去除change_setting权限位
parent
4bfa88f01f
commit
d320443c9f
|
@ -55,7 +55,7 @@ exclude_permissions = (
|
|||
('ops', 'task', 'add,change', 'task'),
|
||||
('ops', 'commandexecution', 'delete,change', 'commandexecution'),
|
||||
('orgs', 'organizationmember', '*', '*'),
|
||||
('settings', 'setting', 'add,delete', 'setting'),
|
||||
('settings', 'setting', 'add,change,delete', 'setting'),
|
||||
('audits', 'operatelog', 'add,delete,change', 'operatelog'),
|
||||
('audits', 'passwordchangelog', 'add,change,delete', 'passwordchangelog'),
|
||||
('audits', 'userloginlog', 'add,change,delete,change', 'userloginlog'),
|
||||
|
|
|
@ -99,7 +99,6 @@ special_pid_mapper = {
|
|||
"xpack.interface": "view_setting",
|
||||
"settings.change_terminal": "terminal_node",
|
||||
"settings.view_setting": "view_setting",
|
||||
"settings.change_setting": "view_setting",
|
||||
"rbac.view_console": "view_console",
|
||||
"rbac.view_audit": "view_audit",
|
||||
"rbac.view_workspace": "view_workspace",
|
||||
|
|
|
@ -14,7 +14,7 @@ from .. import serializers
|
|||
class AlibabaSMSTestingAPI(GenericAPIView):
|
||||
serializer_class = serializers.AlibabaSMSSettingSerializer
|
||||
rbac_perms = {
|
||||
'POST': 'settings.change_setting'
|
||||
'POST': 'settings.change_sms'
|
||||
}
|
||||
|
||||
def post(self, request):
|
||||
|
|
|
@ -19,7 +19,7 @@ class MailTestingAPI(APIView):
|
|||
serializer_class = serializers.MailTestSerializer
|
||||
success_message = _("Test mail sent to {}, please check")
|
||||
rbac_perms = {
|
||||
'POST': 'settings.change_setting'
|
||||
'POST': 'settings.change_email'
|
||||
}
|
||||
|
||||
def post(self, request):
|
||||
|
|
|
@ -13,7 +13,7 @@ from .. import serializers
|
|||
class FeiShuTestingAPI(GenericAPIView):
|
||||
serializer_class = serializers.FeiShuSettingSerializer
|
||||
rbac_perms = {
|
||||
'POST': 'settings.change_setting'
|
||||
'POST': 'settings.change_auth'
|
||||
}
|
||||
|
||||
def post(self, request):
|
||||
|
|
|
@ -16,7 +16,7 @@ from .. import serializers
|
|||
class TencentSMSTestingAPI(GenericAPIView):
|
||||
serializer_class = serializers.TencentSMSSettingSerializer
|
||||
rbac_perms = {
|
||||
'POST': 'settings.change_setting'
|
||||
'POST': 'settings.change_sms'
|
||||
}
|
||||
|
||||
def post(self, request):
|
||||
|
|
|
@ -13,7 +13,7 @@ from .. import serializers
|
|||
class WeComTestingAPI(GenericAPIView):
|
||||
serializer_class = serializers.WeComSettingSerializer
|
||||
rbac_perms = {
|
||||
'POST': 'settings.change_setting'
|
||||
'POST': 'settings.change_auth'
|
||||
}
|
||||
|
||||
def post(self, request):
|
||||
|
|
Loading…
Reference in New Issue