权限数据增加判断包含特定岗位参数数据,则放开权限
This commit is contained in:
parent
742174a615
commit
4876c6adb1
@ -5378,10 +5378,7 @@ public class PALRepositoryQueryAPIManager {
|
||||
*/
|
||||
public String getPublishPortalHtml(UserContext uc, String uuid, String taskId, boolean checkPublish, boolean upVisit) {
|
||||
|
||||
//权限校验
|
||||
// if (!CoeCooperationAPIManager.getInstance().hasRepositoryPermision(uuid)) {
|
||||
// return AlertWindow.getWarningMessagePage("打开失败", "无该文件查看权限");
|
||||
// }
|
||||
|
||||
|
||||
//三员管理,文件密级权限校验
|
||||
if (HighSecurityUtil.isON() && HighSecurityUtil.fileSecuritySwitch()) {
|
||||
@ -5540,6 +5537,8 @@ public class PALRepositoryQueryAPIManager {
|
||||
}
|
||||
|
||||
public boolean hasAccessPortalDesignerPerm(UserContext uc, PALRepositoryModel model) {
|
||||
|
||||
String depViewPer = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.reportform", "Dep_View_Per");
|
||||
String newBoName = "BO_ACT_PUBLISH_PERM_SCOPE";
|
||||
BO bo = SDK.getBOAPI().query(newBoName).addQuery("PALVERSIONID=", model.getVersionId()).detail();
|
||||
if (bo == null) {
|
||||
@ -5554,6 +5553,10 @@ public class PALRepositoryQueryAPIManager {
|
||||
if (roleId.equals(uc.getRoleModel().getId())) {
|
||||
return true;
|
||||
}
|
||||
//如果当前登录用户账户包含参数内账户则允许查看
|
||||
if(depViewPer.contains(uc.getUID())){
|
||||
return true;
|
||||
}
|
||||
// 兼职
|
||||
List<UserMapModel> adminUserMapModels = UserMapCache.getMapListOfUser(uc.getUID());
|
||||
for (UserMapModel mapModel : adminUserMapModels) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user