mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-11 23:35:57 +08:00
FIX get repository protected branches bug
This commit is contained in:
@@ -6,7 +6,7 @@ class ProtectedBranchesController < ApplicationController
|
||||
before_action :authorizate_user_can_edit_project!
|
||||
|
||||
def index
|
||||
scope = ProtectedBranch.all
|
||||
scope = @repository.protected_branches
|
||||
@total_count = scope.size
|
||||
@protected_branches = paginate(scope)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user