updates to init
@@ -1850,7 +1850,13 @@ class CommunityView(TemplateView):
communities_view = user.uaccess.get_communities_with_explicit_membership(PrivilegeCodes.VIEW)
groups_view = user.uaccess.get_groups_with_explicit_access(PrivilegeCodes.VIEW)
# TODO I think this is listing just for CZO Christina, modify to list for entire Community
- community_resources = groups_view[0].gaccess.view_resources.filter()
+
+ try:
+ g = groups_view[0]
+ except:
+ pass
+
+ community_resources = g.gaccess.view_resources.filter()
# g = Group.objects.get(pk=groups_view.id)
# users_view = g.gaccess.get_users_with_explicit_access(PrivilegeCodes.VIEW)
pause = 1
