Commit aaf3588884bd0b206c2267b885199dd3cae6a87a
1 parent
b414eec1
Exists in
dev
add unit-board to obsconfig views
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/core/pyros_django/obsconfig/views.py
... | ... | @@ -230,13 +230,13 @@ def obs_agents_config(request): |
230 | 230 | |
231 | 231 | |
232 | 232 | @login_required |
233 | -@level_required("Admin","Operator","Unit-PI") | |
233 | +@level_required("Admin","Operator","Unit-PI","Unit-board") | |
234 | 234 | def edit_config(request): |
235 | 235 | config = ConfigPyros(os.environ["PATH_TO_OBSCONF_FILE"]) |
236 | 236 | return render(request,"obsconfig/edit_config.html",{"config_file":config.raw_config}) |
237 | 237 | |
238 | 238 | @login_required |
239 | -@level_required("Admin","Operator","Unit-PI") | |
239 | +@level_required("Admin","Operator","Unit-PI","Unit-board") | |
240 | 240 | def verify_config(request): |
241 | 241 | if request.POST.get("config"): |
242 | 242 | temp_config_file = tempfile.NamedTemporaryFile(mode = 'w+',suffix=".yml") |
... | ... | @@ -263,7 +263,7 @@ def verify_config(request): |
263 | 263 | return HttpResponse(json.dumps(response_data), content_type="application/json") |
264 | 264 | |
265 | 265 | @login_required |
266 | -@level_required("Admin","Operator","Unit-PI") | |
266 | +@level_required("Admin","Operator","Unit-PI","Unit-board") | |
267 | 267 | def save_config(request): |
268 | 268 | if request.POST: |
269 | 269 | if request.POST["config"]: |
... | ... |