Unverified Commit 1932f902 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Allow masters to create projects in groups

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 41497b38ea1c
module NamespacesHelper
def namespaces_options(selected = :current_user, scope = :default)
groups = current_user.owned_groups
groups = current_user.owned_groups + current_user.masters_groups
users = [current_user.namespace]
group_opts = ["Groups", groups.sort_by(&:human_name).map {|g| [g.human_name, g.id]} ]
Projects (#{projects.count})
- if can? current_user, :manage_group, @group
- if can? current_user, :create_projects, @group
= link_to new_project_path(namespace_id: @group.id), class: "btn btn-new" do
......@@ -40,7 +40,7 @@ If a user is a GitLab administrator they receive all permissions.
|Browse group|✓|✓|✓|✓|✓|
|Edit group|||||✓|
|Create project in group|||||✓|
|Create project in group|||||✓|
|Manage group members|||||✓|
|Remove group|||||✓|
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment