Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cc09b4521a | |||
| 0bfb0c6aaf | |||
| 3c50de8ff4 |
@@ -23,8 +23,8 @@ use KTXF\Resource\Identifier\EntityIdentifier;
|
|||||||
use KTXF\Resource\Identifier\ResourceIdentifier;
|
use KTXF\Resource\Identifier\ResourceIdentifier;
|
||||||
use KTXF\Resource\Identifier\ResourceIdentifiers;
|
use KTXF\Resource\Identifier\ResourceIdentifiers;
|
||||||
use KTXF\Resource\Identifier\ServiceIdentifier;
|
use KTXF\Resource\Identifier\ServiceIdentifier;
|
||||||
use KTXF\Mail\Provider\ProviderBaseInterface;
|
|
||||||
use KTXF\Resource\Provider\ResourceServiceLocationInterface;
|
use KTXF\Resource\Provider\ResourceServiceLocationInterface;
|
||||||
|
use KTXF\Resource\SystemIdentity;
|
||||||
use KTXF\Routing\Attributes\AuthenticatedRoute;
|
use KTXF\Routing\Attributes\AuthenticatedRoute;
|
||||||
use KTXM\MailManager\Manager;
|
use KTXM\MailManager\Manager;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
@@ -86,7 +86,7 @@ class DefaultController extends ControllerAbstract {
|
|||||||
// acting-user override: only the reserved system context is permitted,
|
// acting-user override: only the reserved system context is permitted,
|
||||||
// gated on the system mail management permission
|
// gated on the system mail management permission
|
||||||
if ($user !== null && $user !== $userId) {
|
if ($user !== null && $user !== $userId) {
|
||||||
if ($user !== ProviderBaseInterface::USER_SYSTEM || !$this->identityContext->hasPermission('mail_manager.system')) {
|
if ($user !== SystemIdentity::USER || !$this->identityContext->hasPermission('mail_manager.system')) {
|
||||||
return new JsonResponse([
|
return new JsonResponse([
|
||||||
'version' => $version,
|
'version' => $version,
|
||||||
'transaction' => $transaction,
|
'transaction' => $transaction,
|
||||||
|
|||||||
@@ -8,9 +8,8 @@ export { serviceService } from './serviceService';
|
|||||||
export { collectionService } from './collectionService';
|
export { collectionService } from './collectionService';
|
||||||
export { entityService } from './entityService';
|
export { entityService } from './entityService';
|
||||||
|
|
||||||
// Type exports
|
export * from '../types/common';
|
||||||
export type * from '../types/common';
|
export * from '../types/provider';
|
||||||
export type * from '../types/provider';
|
export * from '../types/service';
|
||||||
export type * from '../types/service';
|
export * from '../types/collection';
|
||||||
export type * from '../types/collection';
|
export * from '../types/entity';
|
||||||
export type * from '../types/entity';
|
|
||||||
|
|||||||
Reference in New Issue
Block a user