Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…n doesn't view the document in suspend state]

git-svn-id: svn://svn.forge.objectweb.org/svnroot/spagobi/V_4.x/Server/trunk@22371 99afaf0d-6903-0410-885a-c66a8bbb5f81
  • Loading branch information
mcortella committed Mar 24, 2014
1 parent f3b9e05 commit c976dbd
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -814,12 +814,18 @@ public static boolean canSee(BIObject obj, IEngUserProfile profile) throws EMFIn
throw new EMFInternalError(EMFErrorSeverity.ERROR, "User profile in input is null!!");
}
String state = obj.getStateCode();
if ("SUSP".equalsIgnoreCase(state)) {
monitor.stop();
return false;
if ("SUSP".equalsIgnoreCase(state)){
if(! profile.isAbleToExecuteAction(SpagoBIConstants.DOCUMENT_MANAGEMENT_ADMIN)) {
monitor.stop();
return false;
} else {
monitor.stop();
return true;
}
}



List foldersId = obj.getFunctionalities();
if (foldersId == null || foldersId.size() == 0){
logger.warn("BIObject does not belong to any functionality!!");
Expand Down

0 comments on commit c976dbd

Please sign in to comment.