我已经安装了gitlab 6.4.3,一切顺利。但是只有一个奇怪的问题!
是开发人员的用户,可以创建合并请求,也接受它们 !!!我在gitlab中阅读了开发人员可以创建新的合并请求。
也是该项目是私人的,用户是由管理员作为开发人员添加的。
还有我的gitlab信息:
System information
System: Ubuntu 12.04
Current User: git
Using RVM: no
Ruby Version: 2.0.0p353
Gem Version: 2.0.14
Bundler Version:1.5.2
Rake Version: 10.1.0
GitLab information
Version: 6.4.3
Revision: 38397db
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://git.technical.com
HTTP Clone URL: http://git.technical.com/some-project.git
SSH Clone URL: git@git.technical.com:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.8.0
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
您知道这里发生了什么吗?无论如何是否可以解决此问题?
没有许可接受合并请求...然而:第4763页与此有关。
app/views/projects/merge_requests/show/_mr_accept.html.haml
文件是指:
- unless @allowed_to_merge
.bs-callout
%strong You don't have permission to merge this MR
和allowed_to_merge
由app/controllers/projects/merge_requests_controller.rb
中的函数定义:
def allowed_to_merge?
action = if project.protected_branch?(@merge_request.target_branch)
:push_code_to_protected_branches
else
:push_code
end
can?(current_user, action, @project)
end
因此,目前唯一的控制是基于您是否可以推到合并请求的目标分支。
仅此而已。