check for viewable contributions
@@ -192,7 +192,7 @@ def get_access_object(user, user_type, user_access):
access_object = None
picture = None
- if user_access != "owner":
+ if not hasattr(user, 'viewable_contributions'):
user.viewable_contributions = 0
if user_type == "user":
