We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeed69a commit f565c3dCopy full SHA for f565c3d
app-constants.js
@@ -5,7 +5,8 @@
5
const config = require('config')
6
7
const UserRoles = {
8
- Admin: 'Administrator'
+ Admin: 'Administrator',
9
+ TopGearAdmin: 'tgadmin'
10
}
11
12
const Scopes = {
src/routes.js
@@ -154,7 +154,10 @@ module.exports = {
154
controller: 'TermsOfUseController',
155
method: 'getTermsOfUseUsers',
156
auth: 'jwt',
157
- access: [constants.UserRoles.Admin],
+ access: [
158
+ constants.UserRoles.Admin,
159
+ constants.UserRoles.TopGearAdmin
160
+ ],
161
scopes: [constants.Scopes.Terms.Read]
162
},
163
post: {
0 commit comments