|
|
@@ -72,7 +72,8 @@ class ShopAdminController extends BaseController
|
|
|
$name = $post['name'] ?? '';
|
|
|
$finance = $post['finance'] ?? 0;
|
|
|
$switchShop = $post['switchShop'] ?? 0;
|
|
|
- if ($shop->adminId != $adminId && $adminId != 4) {
|
|
|
+ $ptSuperAdminId = AdminClass::getPtSuperAdminId();
|
|
|
+ if ($shop->adminId != $adminId && $adminId != $ptSuperAdminId) {
|
|
|
if ($finance == 1) {
|
|
|
util::fail('超管才能开启员工财务权限');
|
|
|
}
|
|
|
@@ -244,7 +245,8 @@ class ShopAdminController extends BaseController
|
|
|
$finance = $post['finance'] ?? 0;
|
|
|
$switchShop = $post['switchShop'] ?? 0;
|
|
|
$founder = $relation->founder ?? 1;
|
|
|
- if ($shop->adminId != $adminId && $adminId != 4) {
|
|
|
+ $ptSuperAdminId = AdminClass::getPtSuperAdminId();
|
|
|
+ if ($shop->adminId != $adminId && $adminId != $ptSuperAdminId) {
|
|
|
if ($finance == 1) {
|
|
|
util::fail('超管才能修改财务权限');
|
|
|
}
|