Fixed protected branches and file edit
This commit is contained in:
parent
afbdbb0c95
commit
ef5b36eaaf
9 changed files with 21 additions and 20 deletions
|
@ -19,9 +19,9 @@ class Admin::UsersController < AdminController
|
|||
def team_update
|
||||
@admin_user = User.find(params[:id])
|
||||
|
||||
UsersProject.user_bulk_import(
|
||||
@admin_user,
|
||||
UsersProject.add_users_into_projects(
|
||||
params[:project_ids],
|
||||
[@admin_user.id],
|
||||
params[:project_access]
|
||||
)
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ class TreeController < ProjectResourceController
|
|||
end
|
||||
|
||||
def edit
|
||||
@last_commit = @project.last_commit_for(@ref, @path).sha
|
||||
@last_commit = @project.repository.last_commit_for(@ref, @path).sha
|
||||
end
|
||||
|
||||
def update
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue