mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-18 05:08:43 +00:00
cs and phpstan fixes
This commit is contained in:
parent
3dddb2edaa
commit
31a2973496
|
|
@ -254,8 +254,7 @@ final class ApiController extends Controller
|
||||||
$requestAccount = $request->getHeader()->getAccount();
|
$requestAccount = $request->getHeader()->getAccount();
|
||||||
$accountId = (int) $request->getData('account_id');
|
$accountId = (int) $request->getData('account_id');
|
||||||
|
|
||||||
if (
|
if ($requestAccount !== $accountId
|
||||||
$requestAccount !== $accountId
|
|
||||||
&& !$this->app->accountManager->get($accountId)->hasPermission(
|
&& !$this->app->accountManager->get($accountId)->hasPermission(
|
||||||
PermissionType::MODIFY,
|
PermissionType::MODIFY,
|
||||||
$this->app->orgId,
|
$this->app->orgId,
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ final class AccountMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Has one relation.
|
* Has one relation.
|
||||||
*
|
*
|
||||||
* @var array<string, array{mapper:string, self:string, by?:string, column?:string}>
|
* @var array<string, array{mapper:string, external:string, by?:string, column?:string, conditional?:bool}>
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $ownsOne = [
|
protected static array $ownsOne = [
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ final class AddressMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Has one relation.
|
* Has one relation.
|
||||||
*
|
*
|
||||||
* @var array<string, array{mapper:string, self:string, by?:string}>
|
* @var array<string, array{mapper:string, external:string, by?:string, column?:string, conditional?:bool}>
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $ownsOne = [
|
protected static array $ownsOne = [
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ final class LocalizationMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Has one relation.
|
* Has one relation.
|
||||||
*
|
*
|
||||||
* @var array<string, array{mapper:string, self:string, by?:string, column?:string}>
|
* @var array<string, array{mapper:string, external:string, by?:string, column?:string, conditional?:bool}>
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $ownsOne = [
|
protected static array $ownsOne = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user