← history for internal/webauth/webauth.go
b7393737internal/webauth/webauth.go16 lines⬡ raw↓ download
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
package webauth

import (
    "github.com/AaronO/go-git-http/auth"
)

func AuthorizeReadOnly(authInfo auth.AuthInfo) (bool, error) {
    if authInfo.Fetch {
        return true, nil
    }
    return false, nil
}

func AuthorizeAll(authInfo auth.AuthInfo) (bool, error) {
    return true, nil
}