在无权限友好界面增加申请权限按钮
This commit is contained in:
parent
d9e6d59145
commit
d0747e1168
@ -17,6 +17,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import com.actionsoft.bpms.server.conf.portal.AWSPortalConf;
|
||||
import com.actionsoft.bpms.util.*;
|
||||
import org.apache.commons.collections4.IteratorUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
@ -4667,7 +4668,8 @@ public class PALRepositoryQueryAPIManager {
|
||||
// 新的权限校验,若是该模型已发布,按照权限范围表中的权限控制是否可访问,若是该模型尚未发布(例如在发布过程中、已停用等),则不进行权限控制,都可访问
|
||||
if (model.isPublish()) {
|
||||
if (!hasAccessPortalDesignerPerm(uc, model)) {
|
||||
return AlertWindow.getWarningMessagePage("打开失败", "您所在组织/职级暂未被授予该文件的阅览权限");
|
||||
String url = AWSPortalConf.getUrl()+"/r/w?sid="+uc.getSessionId()+"&cmd=com.actionsoft.apps.coe.pal.publisher.filePermissionApplication&palVersionId="+uuid;
|
||||
return AlertWindow.getWarningMessagePage("打开失败", "您所在组织/职级暂未被授予该文件的阅览权限<br/><button onclick=\"window.open('"+url+"','_blank')\" style='color:red;font-weight: bold;'>点击申请查阅权限</button>");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user