We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 321bc4d commit ae5284cCopy full SHA for ae5284c
app-routes.js
@@ -74,8 +74,8 @@ module.exports = (app) => {
74
)
75
) {
76
next(new errors.ForbiddenError(`You are not allowed to perform this action, because the roles are incorrect. \
77
- Required scopes: ${JSON.stringify(def.access)} \
78
- Provided scopes: ${JSON.stringify(req.authUser.roles)}`));
+ Required roles: ${JSON.stringify(def.access)} \
+ Provided roles: ${JSON.stringify(req.authUser.roles)}`));
79
} else {
80
// user token is used in create/update challenge to ensure user can create/update challenge under specific project
81
req.userToken = req.headers.authorization.split(" ")[1];
0 commit comments