Revision 3c22bad0 snf-astakos-app/astakos/im/views.py

b/snf-astakos-app/astakos/im/views.py
94 94
    send_feedback,
95 95
    logout as auth_logout,
96 96
    invite as invite_func,
97
    qh_add_pending_app,
97
    check_pending_app_quota,
98 98
    accept_membership, reject_membership, remove_membership, cancel_membership,
99 99
    leave_project, join_project, enroll_member, can_join_request,
100 100
    can_leave_request,
......
1144 1144
def project_add(request):
1145 1145
    user = request.user
1146 1146
    if not user.is_project_admin():
1147
        ok, limit = qh_add_pending_app(user, dry_run=True)
1147
        ok, limit = check_pending_app_quota(user)
1148 1148
        if not ok:
1149 1149
            m = _(astakos_messages.PENDING_APPLICATION_LIMIT_ADD) % limit
1150 1150
            messages.error(request, m)
......
1260 1260

  
1261 1261
    if not user.is_project_admin():
1262 1262
        owner = app.owner
1263
        ok, limit = qh_add_pending_app(owner, precursor=app, dry_run=True)
1263
        ok, limit = check_pending_app_quota(owner, precursor=app)
1264 1264
        if not ok:
1265 1265
            m = _(astakos_messages.PENDING_APPLICATION_LIMIT_MODIFY) % limit
1266 1266
            messages.error(request, m)

Also available in: Unified diff