Verified Commit 7d5a153a authored by Jakob Moser's avatar Jakob Moser
Browse files

Implement can access protocols check

parent 2b4bbb7e
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -56,6 +56,11 @@ async function canAccess(imageUrl) {

export async function isLoggedIn() {}

export async function canAccessProtocols() {}
/**
 * @returns if the browser session has access to the protocols repo on GitLab
 */
export async function canAccessProtocols() {
    return await canAccess("https://gitlab.cl.uni-heidelberg.de/api/v4/projects/1193/jobs/artifacts/master/raw/pixel.png?job=create-test-pixel")
}

export async function getLatestProtocolFileName() {}