Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
1932f902
Commit
1932f902
authored
May 28, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow masters to create projects in groups
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
14f78d06
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/helpers/namespaces_helper.rb
app/helpers/namespaces_helper.rb
+1
-1
app/views/groups/_projects.html.haml
app/views/groups/_projects.html.haml
+1
-1
doc/permissions/permissions.md
doc/permissions/permissions.md
+1
-1
No files found.
app/helpers/namespaces_helper.rb
View file @
1932f902
module
NamespacesHelper
module
NamespacesHelper
def
namespaces_options
(
selected
=
:current_user
,
scope
=
:default
)
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
]
users
=
[
current_user
.
namespace
]
group_opts
=
[
"Groups"
,
groups
.
sort_by
(
&
:human_name
).
map
{
|
g
|
[
g
.
human_name
,
g
.
id
]}
]
group_opts
=
[
"Groups"
,
groups
.
sort_by
(
&
:human_name
).
map
{
|
g
|
[
g
.
human_name
,
g
.
id
]}
]
...
...
app/views/groups/_projects.html.haml
View file @
1932f902
.ui-box
.ui-box
.title
.title
Projects (
#{
projects
.
count
}
)
Projects (
#{
projects
.
count
}
)
-
if
can?
current_user
,
:
manage_group
,
@group
-
if
can?
current_user
,
:
create_projects
,
@group
%span
.pull-right
%span
.pull-right
=
link_to
new_project_path
(
namespace_id:
@group
.
id
),
class:
"btn btn-new"
do
=
link_to
new_project_path
(
namespace_id:
@group
.
id
),
class:
"btn btn-new"
do
%i
.icon-plus
%i
.icon-plus
...
...
doc/permissions/permissions.md
View file @
1932f902
...
@@ -40,7 +40,7 @@ If a user is a GitLab administrator they receive all permissions.
...
@@ -40,7 +40,7 @@ If a user is a GitLab administrator they receive all permissions.
|------|-----|--------|---------|------|-----|
|------|-----|--------|---------|------|-----|
|Browse group|✓|✓|✓|✓|✓|
|Browse group|✓|✓|✓|✓|✓|
|Edit group|||||✓|
|Edit group|||||✓|
|Create project in group|||||✓|
|Create project in group||||
✓
|✓|
|Manage group members|||||✓|
|Manage group members|||||✓|
|Remove group|||||✓|
|Remove group|||||✓|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment