郭齐峰 2 tahun lalu
induk
melakukan
d9d5aef994
3 mengubah file dengan 0 tambahan dan 8 penghapusan
  1. TEMPAT SAMPAH
      lib/yos.core-2.3.0-sources.jar
  2. TEMPAT SAMPAH
      lib/yos.core-2.3.0.jar
  3. 0 8
      src/custom/restcontroller/ClientUserInfo.java

TEMPAT SAMPAH
lib/yos.core-2.3.0-sources.jar


TEMPAT SAMPAH
lib/yos.core-2.3.0.jar


+ 0 - 8
src/custom/restcontroller/ClientUserInfo.java

@@ -94,14 +94,6 @@ public class ClientUserInfo extends UserInfo {
         return controller.dbConnect.runSqlQuery("select *from sa_salearea_hr where siteid='" + getSiteId() + "' and hrid=" + controller.hrid).isNotEmpty();
     }
 
-    public boolean isSysAdministrator() throws YosException {
-        return controller.dbConnect.runSqlQuery("select * from sys_users where userid='" + getUserId() + "' and sysadministrator=1").isNotEmpty();
-    }
-
-    public boolean isSiteAdministrator() throws YosException {
-        return getUserType() == 0;
-    }
-
     /**
      * 获取当前企业的营销区域id
      */