Merge "Use correct policy name for "Edit Network" form setup" into stable/ocata
This commit is contained in:
commit
8d462d5140
@ -49,7 +49,7 @@ class UpdateNetwork(forms.SelfHandlingForm):
|
||||
def __init__(self, request, *args, **kwargs):
|
||||
super(UpdateNetwork, self).__init__(request, *args, **kwargs)
|
||||
|
||||
if not policy.check((("network", "create_network:shared"),), request):
|
||||
if not policy.check((("network", "update_network:shared"),), request):
|
||||
self.fields['shared'].widget = forms.HiddenInput()
|
||||
|
||||
def handle(self, request, data):
|
||||
|
Loading…
Reference in New Issue
Block a user