Skip to content

Commit 30309ab

Browse files
authored
Merge pull request #830 from HighwayStar/fix_ro_ssh
Add read only ssh link. Fixes #829
2 parents 4be0215 + 73269e3 commit 30309ab

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)