Skip to content

Commit cf75078

Browse files
andypolskriswest
andauthored
Update src/db/mongo/repo.ts
Co-authored-by: Kris West <kristopher.west@natwest.com> Signed-off-by: Andy Pols <andy@pols.co.uk>
1 parent cb80d7a commit cf75078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db/mongo/repo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const isUserPushAllowed = async (name: string, user: string) => {
8787
resolve(false);
8888
return;
8989
}
90-
resolve(repo.users.canPush.includes(user) || repo.users.canAuthorise.includes(user));
90+
resolve(repo.users?.canPush.includes(user) || repo.users?.canAuthorise.includes(user));
9191
});
9292
};
9393

0 commit comments

Comments
 (0)