Skip to content
Snippets Groups Projects
Verified Commit 1932f902 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Allow masters to create projects in groups

parent 14f78d06
No related branches found
No related tags found
No related merge requests found
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]} ]
Loading
Loading
.ui-box
.title
Projects (#{projects.count})
- if can? current_user, :manage_group, @group
- if can? current_user, :create_projects, @group
%span.pull-right
= link_to new_project_path(namespace_id: @group.id), class: "btn btn-new" do
%i.icon-plus
Loading
Loading
Loading
Loading
@@ -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|||||✓|
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment