Revision 0b058d6f snf-astakos-app/astakos/im/views/projects.py

b/snf-astakos-app/astakos/im/views/projects.py
667 667
@valid_astakos_user_required
668 668
def project_members(request, chain_id, members_status_filter=None,
669 669
                    template_name='im/projects/project_members.html'):
670
    project, application = get_by_chain_or_404(chain_id)
671

  
672
    user = request.user
673
    if not user.owns_project(project) or user.is_project_admin():
674
        return redirect(reverse('index'))
675

  
670 676
    return common_detail(request, chain_id,
671 677
                         members_status_filter=members_status_filter,
672 678
                         template_name=template_name)

Also available in: Unified diff