mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 19:53:05 +08:00
11 lines
293 B
Ruby
11 lines
293 B
Ruby
class Projects::BaseController < ApplicationController
|
|
include PaginateHelper
|
|
|
|
before_action :load_project
|
|
before_action :load_repository
|
|
|
|
def require_manager!
|
|
return render_forbidden('你没有权限操作') unless current_user.admin? || @project.manager?(current_user)
|
|
end
|
|
end
|