Skip to content

Commit

Permalink
[Fixes #7197] Missing parenthesis in feature_edit_check (#7198) (#7200)
Browse files Browse the repository at this point in the history
* [Fixes #7197] Missinf parethensis in feature_edit_check

* src folder wrong commit

Co-authored-by: Giovanni Allegri <giohappy@gmail.com>
  • Loading branch information
github-actions[bot] and giohappy authored Mar 30, 2021
1 parent 29ce3e0 commit 5e4719e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geonode/geoserver/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def feature_edit_check(request, layername, permission='change_layer_data'):
if layer.user_can(request.user, permission):
authorized = True
if permission == 'change_layer_data':
if not layer.storeType == 'dataStore' and datastore:
if not (layer.storeType == 'dataStore' and datastore):
authorized = False
return HttpResponse(
json.dumps({'authorized': authorized}), content_type="application/json")
Expand Down

0 comments on commit 5e4719e

Please sign in to comment.