File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22from django .shortcuts import render
33from django .contrib .auth .mixins import LoginRequiredMixin
44from django .views .generic import TemplateView
5+ from backend .views .utils import AdminRequired
56from backend .DAL .DAO .logDAO import *
67from backend .DAL .DAO .deviceDAO import *
78from backend .integrations .ansible import *
89
9- class AnsibleView (LoginRequiredMixin , TemplateView ):
10+ class AnsibleView (AdminRequired , TemplateView ):
1011 template_name = 'ansible.html'
1112 ansible = AnsibleSwitchConnector ()
1213
Original file line number Diff line number Diff line change 22from django .contrib .auth .mixins import LoginRequiredMixin
33from django .views .generic import TemplateView
44from backend .DAL .DAO .logDAO import filterLog
5+ from backend .views .utils import AdminRequired
56
6- class LogView (LoginRequiredMixin , TemplateView ):
7+ class LogView (AdminRequired , TemplateView ):
78 template_name = 'log.html'
89
910 def post (self , request ,* args , ** kwargs ):
You can’t perform that action at this time.
0 commit comments