Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/services/ReviewService.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async function createReview (authUser, entity) {
entity
)

if (_.intersection(authUser.roles, ['Administrator', 'administrator']).length === 0 && !authUser.scopes) {
if (_.intersection(authUser.roles, ['Administrator', 'administrator', 'tgadmin']).length === 0 && !authUser.scopes) {
if (entity.reviewedDate) {
throw new errors.HttpStatusError(403, 'You are not allowed to set the `reviewedDate` attribute on a review')
}
Expand Down
2 changes: 1 addition & 1 deletion src/services/ReviewSummationService.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async function createReviewSummation (authUser, entity) {
item.isFinal = entity.isFinal
}

if (_.intersection(authUser.roles, ['Administrator', 'administrator']).length === 0 && !authUser.scopes) {
if (_.intersection(authUser.roles, ['Administrator', 'administrator', 'tgadmin']).length === 0 && !authUser.scopes) {
if (entity.reviewedDate) {
throw new errors.HttpStatusError(403, 'You are not allowed to set the `reviewedDate` attribute on a review summation')
}
Expand Down
2 changes: 1 addition & 1 deletion src/services/SubmissionService.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ async function createSubmission (authUser, files, entity) {
}

logger.info('Check User access before creating the submission')
if (_.intersection(authUser.roles, ['Administrator', 'administrator']).length === 0 && !authUser.scopes) {
if (_.intersection(authUser.roles, ['Administrator', 'administrator', 'tgadmin']).length === 0 && !authUser.scopes) {
await helper.checkCreateAccess(authUser, item.memberId, challenge)

if (entity.submittedDate) {
Expand Down