File tree 1 file changed +3
-9
lines changed
src/javaxt/express/services 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ public class QueryService {
37
37
private List <String > pendingJobs = new LinkedList <>();
38
38
private List <String > completedJobs = new LinkedList <>();
39
39
private java .util .List <SelectItem > selectCount ;
40
- //public static Console console = Console.console;
41
40
42
41
43
42
//**************************************************************************
@@ -325,7 +324,7 @@ public void write(Recordset rs){
325
324
json .set ("name" , field .getName ());
326
325
json .set ("type" , field .getType ());
327
326
json .set ("class" , field .getClassName ());
328
- json .set ("table" , field .getTable ());
327
+ json .set ("table" , field .getTableName ());
329
328
metadata .add (json );
330
329
count ++;
331
330
}
@@ -464,14 +463,9 @@ private ServiceResponse list(ServiceRequest request) {
464
463
while (it .hasNext ()){
465
464
String key = it .next ();
466
465
QueryJob job = jobs .get (key );
467
- long userID = job .userID ;
468
-
469
- //Prevent non-admins seeing other user jobs
470
- if (user .getAccessLevel ()<5 ){
471
- if (userID !=user .getID ()) continue ;
466
+ if (job .userID ==user .getID ()){
467
+ arr .add (job .toJson ());
472
468
}
473
-
474
- arr .add (job .toJson ());
475
469
}
476
470
}
477
471
You can’t perform that action at this time.
0 commit comments