mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
FIX bug
This commit is contained in:
@@ -2,7 +2,8 @@ class RepositoriesController < ApplicationController
|
||||
include ApplicationHelper
|
||||
include OperateProjectAbilityAble
|
||||
before_action :require_login, only: %i[edit update create_file update_file delete_file sync_mirror]
|
||||
before_action :find_project, :authorizate!, except: [:sync_mirror, :tags]
|
||||
before_action :find_project, except: :tags
|
||||
before_action :authorizate!, except: [:sync_mirror, :tags]
|
||||
before_action :find_repository, only: %i[sync_mirror tags]
|
||||
before_action :authorizate_user_can_edit_project!, only: %i[sync_mirror]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user