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