mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
前端修改及后端的权限修改
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class IssueTagsController < ApplicationController
|
||||
before_action :require_login
|
||||
before_action :require_login, except: [:index]
|
||||
before_action :find_project_with_id
|
||||
before_action :set_project
|
||||
before_action :check_issue_permission, except: :index
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class IssuesController < ApplicationController
|
||||
before_action :require_login, except: [:index, :show]
|
||||
before_action :require_login, except: [:index, :show, :index_chosen]
|
||||
before_action :find_project_with_id
|
||||
before_action :set_project_and_user
|
||||
before_action :check_project_public, only: [:index ,:show, :copy, :index_chosen, :close_issue]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class PullRequestsController < ApplicationController
|
||||
before_action :require_login
|
||||
before_action :require_login, except: [:index, :show]
|
||||
before_action :find_project_with_id
|
||||
before_action :set_repository
|
||||
before_action :find_pull_request, except: [:index, :new, :create, :check_can_merge]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class VersionsController < ApplicationController
|
||||
before_action :require_login
|
||||
before_action :require_login, except: [:index, :show]
|
||||
before_action :find_project_with_id
|
||||
before_action :check_issue_permission, except: [:show, :index]
|
||||
before_action :set_version, only: [:edit, :update, :destroy, :show,:update_status]
|
||||
|
||||
Reference in New Issue
Block a user