forked from Gitlink/forgeplus
FIX get repository protected branches bug
This commit is contained in:
parent
61c8e41136
commit
5a25ffe101
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue