lisai17@sina.com 2020-10-26 16:04:30 +08:00
parent 9dc3185231
commit f9a63a7699
3 changed files with 6 additions and 3 deletions

View File

@ -94,7 +94,7 @@ public class Config extends JFinalConfig {
public static DeviceThread deviceThread = new DeviceThread(); public static DeviceThread deviceThread = new DeviceThread();
public static SocketIOService socketio = null; public static SocketIOService socketio = null;
private static boolean client_run = true; private static boolean client_run = true;
public static final String CLINET_VERSION = "20201024"; public static final String CLINET_VERSION = "20201026";
public static String getRootPath() { public static String getRootPath() {
return PathKit.getWebRootPath() return PathKit.getWebRootPath()

View File

@ -145,7 +145,10 @@ public class InvoiceLogController extends Controller {
if (tokenuser == null) { if (tokenuser == null) {
renderJson(Result.noauth()); renderJson(Result.noauth());
return; return;
} else if (!SysuserSyncService.me.isTreasurer(tokenuser.getRole())) { // 财务才能录入专票 } else if (
!SysuserSyncService.me.isTreasurer(tokenuser.getRole())
&& !SysuserSyncService.me.isPresident(tokenuser.getRole())
) { // 和经理录入专票
renderJson(Result.permissionDenied()); renderJson(Result.permissionDenied());
return; return;
} }

View File

@ -111,7 +111,7 @@ public class SysuserSyncService extends BaseSyncService {
/** /**
* 2020-03-7 * 2020-03-7
* *
* *
* @param roleid * @param roleid
* @return * @return