diff --git a/snipts/api.py b/snipts/api.py index c38d41c..9481026 100644 --- a/snipts/api.py +++ b/snipts/api.py @@ -178,9 +178,6 @@ class PrivateSniptResource(ModelResource): bundle.data['tags_list'] = bundle.data.get('tags') bundle.data['tags'] = '' - if not request.user.is_staff: - bundle.data['blog_post'] = False - return super(PrivateSniptResource, self).obj_create(bundle, request, user=request.user, **kwargs) @@ -192,9 +189,6 @@ class PrivateSniptResource(ModelResource): bundle.data['tags_list'] = '' bundle.data['tags'] = '' - if not request.user.is_staff: - bundle.data['blog_post'] = False - return super(PrivateSniptResource, self).obj_update(bundle, request, user=request.user, **kwargs) diff --git a/snipts/templates/snipts/snipt-edit-js-template.html b/snipts/templates/snipts/snipt-edit-js-template.html index 028336b..1069bf9 100644 --- a/snipts/templates/snipts/snipt-edit-js-template.html +++ b/snipts/templates/snipts/snipt-edit-js-template.html @@ -50,16 +50,10 @@ checked="checked"<% } %> name="" value="" /> Public - {% endverbatim %} - {% if request.user.is_staff %} - {% verbatim %} - - {% endverbatim %} - {% endif %} - {% verbatim %} +