git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/branches/data-access/storagehub-webapp/1.0@179674 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a39640271a
commit
11d3f3d9b4
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue