Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit ba8abae

Browse files
Allow non admin users to bulk upload
1 parent f0ccf80 commit ba8abae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = {
2727
method: 'uploadEntity',
2828
upload: fileUpload.single('upload'),
2929
auth: 'jwt',
30-
access: constants.AdminUser,
30+
access: constants.AllAuthenticatedUsers,
3131
scopes: [constants.Scopes.CreateUpload, constants.Scopes.AllUpload]
3232
}
3333
},
@@ -53,7 +53,7 @@ module.exports = {
5353
method: 'uploadEntity',
5454
upload: templateUpload.single('template'),
5555
auth: 'jwt',
56-
access: constants.AllAuthenticatedUsers,
56+
access: constants.AdminUser,
5757
scopes: [constants.Scopes.CreateTemplate, constants.Scopes.AllTemplate]
5858
}
5959
},

0 commit comments

Comments
 (0)