Commit c7ae8d2e authored by Nicola Fulvio Calabria's avatar Nicola Fulvio Calabria
Browse files

fix

parent 93dd552b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ public class MoveService extends AbstractNodeService {
                if(snd.isPermissionDenied()) throw PermissionDeniedException.forPath(destinationPath);                                                
                if(!snd.isWritable()) throw new InternalFaultException("Destination is not writable: "+ destinationPath);
                if(!snd.isContainer()) throw new InternalFaultException("Existing destination is not a container: " + destinationPath);
                if(!snd.isImmutable()) throw new InternalFaultException("Destination is immutable: " + destinationPath);
                if(snd.isImmutable()) throw new InternalFaultException("Destination is immutable: " + destinationPath);
                
                destinationNodeLtreePath = snd.getDestinationNodeLtreePath();
                
+1 −1
Original line number Diff line number Diff line
@@ -256,7 +256,7 @@ public class NodeDAO {
                + "((SELECT COUNT(*) FROM (SELECT UNNEST(?) INTERSECT SELECT UNNEST(n.group_write)) AS allowed_groups ) = 0 AND\n"
                + "n.creator_id <> ?) AS is_permission_denied,\n"
                + "n.type = 'container' AS is_container,\n"
                + "n.job_id IS NOT NULL AS busy_state\n"
                + "n.job_id IS NOT NULL AS busy_state,\n"
                + "n.immutable AS is_immutable\n"
                + "FROM node n \n"
                + "LEFT JOIN location loc ON loc.location_id = n.location_id\n"