Skip to content

Commit

Permalink
[Minor fix] allow sld POST request since the user might want to creat…
Browse files Browse the repository at this point in the history
…e a new style
  • Loading branch information
afabiani committed Apr 29, 2019
1 parent 67df2f9 commit 04c529f
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 @@ -444,7 +444,7 @@ def style_change_check(request, path):
'change_layer_style', obj=layer):
authorized = False
except BaseException:
authorized = False
authorized = (request.method == 'POST') # The user is probably trying to create a new style
logger.warn(
'There is not a style with such a name: %s.' % style_name)
return authorized
Expand Down

0 comments on commit 04c529f

Please sign in to comment.