Commit 7de35951 authored by LEVY-FALK Hugo's avatar LEVY-FALK Hugo Committed by root

Acl sur la création de switch.

parent aba1fcc9
......@@ -354,10 +354,13 @@ def new_switch(request):
associée. Vue complexe. Appelle successivement les 4 models forms
adaptés : machine, interface, domain et switch"""
switch = NewSwitchForm(request.POST or None)
machine = NewMachineForm(request.POST or None)
machine = NewMachineForm(
request.POST or None,
user=request.user
)
interface = AddInterfaceForm(
request.POST or None,
infra=request.user.has_perms(('infra',))
user=request.user
)
domain = DomainForm(
request.POST or None,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment