8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-26 14:42:25 +00:00

Acl sur la création de switch.

This commit is contained in:
Hugo LEVY-FALK 2017-12-30 02:00:32 +01:00
parent 8c3d5567c8
commit c4e3888e7e

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,