Browse Source

修改权限问题

zengyicheng 3 years ago
parent
commit
588cd14226
1 changed files with 7 additions and 0 deletions
  1. 7 0
      js/Desktop/DeskTop.js

+ 7 - 0
js/Desktop/DeskTop.js

@@ -459,6 +459,13 @@ U.MD.D.I.openApplication = function(str, obj, info) {
         _userid = obj.userid || US.userInfo.userid, //登录用户id
         _oid = obj.organizeid || _userinfo.organizeid,
         _type = US.userInfo.type || US.userInfo.identity;
+    if (US.userInfo.identity && US.userInfo.identity == 0) {
+        _type = 1;
+    } else if (US.userInfo.identity && US.userInfo.identity == 1) {
+        _type = 2;
+    } else if (US.userInfo.identity && US.userInfo.identity == 2) {
+        _type = 0;
+    }
     if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
         switch (str) {