|
@ -144,6 +144,9 @@ class MumbleForm( PropertyModelForm ): |
|
|
model = Mumble |
|
|
model = Mumble |
|
|
fields = ['name'] |
|
|
fields = ['name'] |
|
|
|
|
|
|
|
|
|
|
|
def EXT_authorize( self, request, action ): |
|
|
|
|
|
return request.user.is_authenticated() and ( not self.instance or self.instance.isUserAdmin( request.user ) ) |
|
|
|
|
|
|
|
|
def EXT_validate( self, request ): |
|
|
def EXT_validate( self, request ): |
|
|
if not self.instance.isUserAdmin( request.user ): |
|
|
if not self.instance.isUserAdmin( request.user ): |
|
|
return False |
|
|
return False |
|
|