refactor: Use single quote for user can method error

This commit is contained in:
Faruk AYDIN
2024-11-11 17:49:17 +01:00
parent da81ecf915
commit b5310afb90

View File

@@ -642,7 +642,7 @@ class User extends Base {
can(action, subject) {
const can = this.ability.can(action, subject);
if (!can) throw new NotAuthorizedError(`The user is not authorized!`);
if (!can) throw new NotAuthorizedError('The user is not authorized!');
const relevantRule = this.ability.relevantRuleFor(action, subject);