mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-16 23:52:41 +00:00
* [Update] 审计员 * [Update] 增加审计员的权限控制 * [Update] 增加审计员Api全校的控制 * [Update] 优化auditor的api权限控制 * [Update] 优化审计员权限控制 * [Update]优化管理员权限的View * [Update] 优化超级管理权限的View * [Update] 添加审计员切换组织查询会话管理数据 * [Update] 前端禁用审计员在线会话终断按钮 * [Update]优化细节问题
19 lines
512 B
Python
19 lines
512 B
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
from django.views.generic import TemplateView
|
|
|
|
from common.permissions import PermissionsMixin, IsOrgAdmin, IsAuditor
|
|
|
|
|
|
__all__ = ['CeleryTaskLogView']
|
|
|
|
|
|
class CeleryTaskLogView(PermissionsMixin, TemplateView):
|
|
template_name = 'ops/celery_task_log.html'
|
|
permission_classes = [IsOrgAdmin | IsAuditor]
|
|
|
|
def get_context_data(self, **kwargs):
|
|
context = super().get_context_data(**kwargs)
|
|
context.update({'task_id': self.kwargs.get('pk')})
|
|
return context
|