mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor: Update authentication error message to include API key requirement
This commit is contained in:
@@ -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
|
||||
}.`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user