FIX get repository protected branches bug

This commit is contained in:
Jasder 2020-12-08 16:48:28 +08:00
parent 61c8e41136
commit 5a25ffe101
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ class ProtectedBranchesController < ApplicationController
before_action :authorizate_user_can_edit_project! before_action :authorizate_user_can_edit_project!
def index def index
scope = ProtectedBranch.all scope = @repository.protected_branches
@total_count = scope.size @total_count = scope.size
@protected_branches = paginate(scope) @protected_branches = paginate(scope)
end end