This commit is contained in:
Lucio Lelii 2019-06-05 16:10:22 +00:00
parent a39640271a
commit 11d3f3d9b4
1 changed files with 3 additions and 2 deletions

View File

@ -198,12 +198,13 @@ public class ACLManager {
@GET
@Path("{id}/acls/user/{user}/canwrite")
public Boolean canWriteInto(@PathParam("user") String user) {
@Path("{id}/acls/write")
public Boolean canWriteInto() {
InnerMethodName.instance.set("canWriteIntoFolder");
Session ses = null;
Boolean canWrite = false;
try{
ses = repository.getRepository().login(CredentialHandler.getAdminCredentials(context));
Node node = ses.getNodeByIdentifier(id);
Item item = node2Item.getItem(node, Excludes.ALL);
if (!(item instanceof FolderItem))