Fix logic around public for non-pro.

master
Nick Sergeant 2015-08-31 10:51:52 -04:00
parent a8908282bb
commit 5467ccbd5f
1 changed files with 2 additions and 4 deletions

View File

@ -145,10 +145,8 @@ class SniptValidation(Validation):
def is_valid(self, bundle, request=None):
errors = {}
print bundle.data['public']
if bundle.data['public'] is False and \
request.user.profile.is_pro is False:
if request.user.profile.is_pro is False:
if ('public' not in bundle.data or bundle.data['public'] is False):
errors['not-pro'] = ("You'll need to go Pro "
"(https://snipt.net/pro/) "
"in order to create private "