Skip to content
Snippets Groups Projects
Unverified Commit 631f79ef authored by Timm Fitschen's avatar Timm Fitschen
Browse files

BUG: in AccessControl Job

parent c7a1ed67
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ public class MySQLRetrievePermissionRules extends MySQLTransaction
} catch (final ConnectionException e) {
throw new TransactionException(e);
}
return null;
return new HashSet<>();
}
@SuppressWarnings("unchecked")
......
......@@ -68,13 +68,11 @@ public class AccessControl extends ContainerJob {
if (par1.hasId() && par1.getId() > 0) {
Database.execute(new RetrieveSparseEntity(par1), getTransaction().getAccess());
}
if (par1.getName().equals("CommentAnnotation")) {
if (subject.isPermitted(
getTransaction().getClass().getSimpleName() + ":CommentAnnotation")) {
if (par1.hasName() && par1.getName().equals("CommentAnnotation") && subject
.isPermitted(getTransaction().getClass().getSimpleName() + ":CommentAnnotation")) {
continue;
}
}
}
e.setEntityStatus(EntityStatus.UNQUALIFIED);
e.addMessage(ServerMessages.AUTHORIZATION_ERROR);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment