~edwargix/git.sr.ht

261d143c6ac01f52644a7de867d9689f3e008ea6 — Drew DeVault 8 years ago ae9a7a6
Fix bug in get_access
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/access.py
M gitsrht/access.py => gitsrht/access.py +1 -1
@@ 27,7 27,7 @@ def get_access(repo, user=None):
    # TODO: ACLs
    if not repo:
        return UserAccess.none
    if not current_user:
    if not user:
        if repo.visibility == RepoVisibility.public or \
                repo.visibility == RepoVisibility.unlisted:
            return UserAccess.read