refactor: Use single quote for user can method error
This commit is contained in:
@@ -642,7 +642,7 @@ class User extends Base {
|
|||||||
can(action, subject) {
|
can(action, subject) {
|
||||||
const can = this.ability.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);
|
const relevantRule = this.ability.relevantRuleFor(action, subject);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user