Skip to content

Commit 331b0db

Browse files
committedDec 6, 2019
adding an else check
1 parent acbdc2a commit 331b0db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/services/SubmissionService.js

+2
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ function * createSubmission (authUser, files, entity) {
300300
if (_.intersection(authUser.roles, ['Administrator', 'administrator']).length === 0 && !authUser.scopes) {
301301
logger.info(`Calling checkCreateAccess for ${JSON.stringify(authUser)}`)
302302
yield helper.checkCreateAccess(authUser, item)
303+
} else {
304+
logger.info(`No need to call checkCreateAccess for ${JSON.stringify(authUser)}`)
303305
}
304306

305307
// Prepare record to be inserted

0 commit comments

Comments
 (0)