Skip to content

Commit 73269e3

Browse files
committed
Add read only ssh link. Fixes #829
1 parent 746493c commit 73269e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/concerns/gitolitable/authorizations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def urls_are_viewable?
3737
end
3838

3939
def ssh_access_available?
40-
git_ssh_enabled? && !git_annex_enabled? && User.current.allowed_to_commit?(self)
40+
git_ssh_enabled? && !git_annex_enabled? && (User.current.allowed_to_commit?(self) || User.current.allowed_to_clone?(self))
4141
end
4242

4343
def https_access_available?

0 commit comments

Comments
 (0)