|
@@ -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
|
|
|
*/
|