Skip to content

Commit 36f19c3

Browse files
committed
allow artifact access for m2m tokens
1 parent 08829cd commit 36f19c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/common/helper.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,10 @@ async function checkCreateAccess (authUser, memberId, challengeDetails) {
551551
* @param {Array} resources the challenge resources
552552
*/
553553
const getChallengeAccessLevel = async (authUser, challengeId) => {
554+
if (authUser.isMachine) {
555+
return { hasFullAccess: true }
556+
}
557+
554558
const resources = await getChallengeResources(challengeId, authUser.userId)
555559

556560
// Case Insensitive Role checks

0 commit comments

Comments
 (0)