mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 12:45:46 +08:00
Merge branch 'dev_trustie' into dev_devops
This commit is contained in:
@@ -121,6 +121,7 @@ class RepositoriesController < ApplicationController
|
||||
end
|
||||
|
||||
def authorizate!
|
||||
return if current_user && current_user.admin?
|
||||
if @project.repository.hidden? && !@project.member?(current_user)
|
||||
render_forbidden
|
||||
end
|
||||
@@ -141,7 +142,7 @@ class RepositoriesController < ApplicationController
|
||||
@ref = params[:ref] || "master"
|
||||
end
|
||||
|
||||
def get_latest_commit
|
||||
def get_latest_commit
|
||||
latest_commit = project_commits
|
||||
@latest_commit = latest_commit[:body][0] if latest_commit.present?
|
||||
@commits_count = latest_commit[:total_count] if latest_commit.present?
|
||||
|
||||
Reference in New Issue
Block a user