       END IF;
     END IF;
     RETURN 0;
+  EXCEPTION
+    WHEN NO_DATA_FOUND THEN
+      RETURN 0;  
   END accessOwner;
 ---------------------------------------------------------------------------------------------------
 -- access defined by pAccess (read/write) for group return boolean

    IF accessProject(pUserID, pProjectID) = 0 THEN
      RETURN 0;
    END IF;
    select project_id, resource_name, parent_id, locked_by
           into vResProjectID, vNextPath, vNextResource, vLockedBy
           from cms_resources
           where resource_id = pResourceID;
-- the following check is disabled because there are problems
    -- not locked by user => false
    IF vLockedBy != pUserId THEN

      END IF;
    END IF;
    RETURN 0;
  EXCEPTION
    WHEN NO_DATA_FOUND THEN
      RETURN 0;      
  END accessGroup;
---------------------------------------------------------------------------------------------------
END;
