8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 11:23:10 +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 associée. Vue complexe. Appelle successivement les 4 models forms
adaptés : machine, interface, domain et switch""" adaptés : machine, interface, domain et switch"""
switch = NewSwitchForm(request.POST or None) switch = NewSwitchForm(request.POST or None)
machine = NewMachineForm(request.POST or None) machine = NewMachineForm(
request.POST or None,
user=request.user
)
interface = AddInterfaceForm( interface = AddInterfaceForm(
request.POST or None, request.POST or None,
infra=request.user.has_perms(('infra',)) user=request.user
) )
domain = DomainForm( domain = DomainForm(
request.POST or None, request.POST or None,