3 Commits

Author SHA1 Message Date
Sebastian cc09b4521a chore(deps): update vitest monorepo to v4.1.11
Build Test / test (pull_request) Successful in 1m7s
JS Unit Tests / test (pull_request) Successful in 1m4s
PHP Integration Tests / Integration Tests (pull_request) Failing after 1m43s
PHP Unit Tests / test (pull_request) Successful in 1m35s
2026-08-29 03:02:02 +00:00
Sebastian 0bfb0c6aaf fix: don't just export the types
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-08-28 22:03:41 -04:00
Sebastian 3c50de8ff4 refactor(core): centralize reserved system user identity
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-08-28 19:35:00 -04:00
2 changed files with 7 additions and 8 deletions
+2 -2
View File
@@ -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,
+5 -6
View File
@@ -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';