Browse Source

游客禁止查看邀请

hy 7 years ago
parent
commit
4b4bf2f152
1 changed files with 4 additions and 0 deletions
  1. 4 0
      frontend/saas-web/app/view/viewport/ViewportModel.js

+ 4 - 0
frontend/saas-web/app/view/viewport/ViewportModel.js

@@ -19,6 +19,10 @@ Ext.define('saas.view.viewport.ViewportModel', {
         },
         isAdmin: function(get) {
             var account = get('account');
+            //游客禁止
+            if (account && account.id == -99999){
+                return false;
+            }
             if (account && 0 == account.type) {
                 return true;
             }