refactor: Update authentication error message to include API key requirement

This commit is contained in:
Simon Larsen
2025-06-20 21:59:38 +01:00
parent 24803362cb
commit aeb3d93a1f

View File

@@ -602,7 +602,7 @@ export default class ModelPermission {
// this means the record is not publicly createable and the user is not logged in.
throw new NotAuthenticatedException(
`A user should be logged in to ${type} record of ${
`Authenticated user or a valid API key is needed to ${type} record of ${
new modelType().singularName
}.`,
);