Skip to content

Commit f565c3d

Browse files
committed
PROD-4186 TopGear access to terms API
1 parent eeed69a commit f565c3d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app-constants.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
const config = require('config')
66

77
const UserRoles = {
8-
Admin: 'Administrator'
8+
Admin: 'Administrator',
9+
TopGearAdmin: 'tgadmin'
910
}
1011

1112
const Scopes = {

src/routes.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ module.exports = {
154154
controller: 'TermsOfUseController',
155155
method: 'getTermsOfUseUsers',
156156
auth: 'jwt',
157-
access: [constants.UserRoles.Admin],
157+
access: [
158+
constants.UserRoles.Admin,
159+
constants.UserRoles.TopGearAdmin
160+
],
158161
scopes: [constants.Scopes.Terms.Read]
159162
},
160163
post: {

0 commit comments

Comments
 (0)