mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-13 03:08:39 +00:00
fix tests
This commit is contained in:
parent
cf4398ad8a
commit
673899bfe3
|
|
@ -970,6 +970,21 @@ final class ApiController extends Controller
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($account->id === 0
|
||||||
|
&& !$this->app->accountManager->get($requestAccount)->hasPermission(
|
||||||
|
PermissionType::MODIFY,
|
||||||
|
$this->app->unitId,
|
||||||
|
$this->app->appId,
|
||||||
|
self::NAME,
|
||||||
|
PermissionCategory::SETTINGS
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
$this->fillJsonResponse($request, $response, NotificationLevel::HIDDEN, '', '', []);
|
||||||
|
$response->header->status = RequestStatusCode::R_403;
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ($account->l11n->id === 0) {
|
if ($account->l11n->id === 0) {
|
||||||
$l11n = LocalizationMapper::get()
|
$l11n = LocalizationMapper::get()
|
||||||
->where('id', (int) $request->getData('id'))
|
->where('id', (int) $request->getData('id'))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user