8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 20:03:11 +00:00

Acl sur la création de switch.

This commit is contained in:
LEVY-FALK Hugo 2017-12-30 02:00:32 +01:00 committed by root
parent aba1fcc9d0
commit 7de3595150

View file

@ -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,