新增: 用户项目列表支持多个参数

This commit is contained in:
2022-06-23 18:16:57 +08:00
parent fe58175ee0
commit 7cad953413
5 changed files with 95 additions and 2 deletions

View File

@@ -10,4 +10,9 @@ class Api::V1::BaseController < ApplicationController
def current_user
User.find(doorkeeper_token.resource_owner_id) if doorkeeper_token
end
def require_manager_above
@project = load_project
return render_forbidden unless current_user.admin? && @project.manager?(current_user)
end
end