|
按照政企页面建立一个重定向页面,在重定向页面的load脚本里添加了如下脚本,//判断当前登录人是否拥有manager角色,manager进入管理界面,普通用户进入首页
var flag = "";
var roleList = this.org.listRoleWithPerson( this.session.user.distinguishedName );
for(var i=0;i<roleList.length;i++){
if(roleList.name=="Manager"){
flag = "manager";
}
}
if( flag=="manager" || this.session.user.distinguishedName=="xadmin@o2oa@P"){
window.location = decodeURIComponent("/x_desktop/index.html");
}else{
window.location = decodeURIComponent("/x_desktop/portal.html?id=6c908b43-49bc-425c-ae05-8c1494420fdc");
}
然后在实际登录的时候还是没有效果 是要在哪个脚本里配置么?
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|