fix:warehouse_keeper
This commit is contained in:
@@ -62,6 +62,9 @@ class WarehouseService extends BaseService{
|
||||
$kitchenId = (int)$this->request->input('kitchen_id');
|
||||
$info = $this->warehouseKeeperModel->getInfoByUserId($userId);
|
||||
|
||||
if (RoleCode::SUPER_ADMIN != $this->roleId && RoleCode::ADMIN != $this->roleId)
|
||||
throw new ErrException('该角色没有权限');
|
||||
|
||||
if (!empty($info)) {
|
||||
if(!empty($kitchenId))
|
||||
$info->kitchen_id = $kitchenId;
|
||||
|
||||
Reference in New Issue
Block a user