Allow superusers to register condition-less notifications (regular users already...
authorZdeněk Šustr <sustr4@cesnet.cz>
Thu, 19 Jan 2012 15:00:32 +0000 (15:00 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Thu, 19 Jan 2012 15:00:32 +0000 (15:00 +0000)
org.glite.lb.server/src/notification.c

index aa48a9b..21e5236 100644 (file)
@@ -688,8 +688,9 @@ static int split_cond_list(
 
 
        if ( !conditions || !conditions[0] ) {
-               if (ctx->noAuth) nconds_ct = jobs_ct = 0;
-               else return edg_wll_SetError(ctx, EINVAL, "Empty condition list");
+               nconds_ct = jobs_ct = 0;
+               //if (ctx->noAuth) nconds_ct = jobs_ct = 0;
+               //else return edg_wll_SetError(ctx, EINVAL, "Empty condition list");
        }
        else for ( nconds_ct = jobs_ct = i = 0; conditions[i]; i++ ) {
                if ( conditions[i][0].attr && conditions[i][0].attr != EDG_WLL_QUERY_ATTR_JOBID )