Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
issue #283
  • Loading branch information
rsoika committed Jul 20, 2017
1 parent af1a0f2 commit b544dd5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,10 @@ public boolean run(ItemCollection adminp) throws AdminPException {
String sQuery = "(";
// convert type list into comma separated list
List<String> typeList = Arrays.asList(typeFilter.split("\\s*,\\s*"));
String sType = "";
for (String aValue : typeList) {
sType += "type:\"" + aValue.trim() + "\" OR ";
sQuery += "type:\"" + aValue.trim() + "\" OR ";
}
sType = sType.substring(0, sType.length() - 3);
sQuery = sQuery.substring(0, sQuery.length() - 4);
sQuery += ")";
sQuery += " AND ($writeaccess:\"" + fromUserID + "\" OR $readaccess:\"" + fromUserID + "\" OR namowner:\""
+ fromUserID + "\" OR $creator:\"" + fromUserID + "\" OR namcreator:\"" + fromUserID + "\" )";
Expand Down

0 comments on commit b544dd5

Please sign in to comment.