Skip to content

Commit 331b0db

Browse files
committed
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

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy