Skip to content

Commit

Permalink
Add read only ssh link. Fixes #829
Browse files Browse the repository at this point in the history
  • Loading branch information
HighwayStar committed Feb 13, 2024
1 parent 746493c commit 73269e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/gitolitable/authorizations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def urls_are_viewable?
end

def ssh_access_available?
git_ssh_enabled? && !git_annex_enabled? && User.current.allowed_to_commit?(self)
git_ssh_enabled? && !git_annex_enabled? && (User.current.allowed_to_commit?(self) || User.current.allowed_to_clone?(self))
end

def https_access_available?
Expand Down

0 comments on commit 73269e3

Please sign in to comment.