user.get_profile()->user.profile

This commit is contained in:
j 2016-02-19 22:04:15 +05:30
commit 1cc795995d
27 changed files with 72 additions and 70 deletions

View file

@ -394,7 +394,7 @@ def sortLists(request, data):
}.get(section,section)
#ids = list(set(data['ids']))
ids = data['ids']
if section == 'featured' and not request.user.get_profile().capability('canEditFeaturedLists'):
if section == 'featured' and not request.user.profile.capability('canEditFeaturedLists'):
response = json_response(status=403, text='not allowed')
else:
user = request.user