BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
ff07a5ab
Commit
ff07a5ab
authored
Jan 24, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'improve/developer_permissions' into 'master'
Permissions: Developer can manage issue tracker now
parents
baccb9a4
237ddd60
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
2 deletions
+16
-2
CHANGELOG
CHANGELOG
+3
-0
blob_controller.rb
app/controllers/projects/blob_controller.rb
+1
-0
edit_tree_controller.rb
app/controllers/projects/edit_tree_controller.rb
+1
-0
issues_controller.rb
app/controllers/projects/issues_controller.rb
+1
-1
new_tree_controller.rb
app/controllers/projects/new_tree_controller.rb
+1
-0
ability.rb
app/models/ability.rb
+1
-0
permissions.html.haml
app/views/help/permissions.html.haml
+7
-0
_tree.html.haml
app/views/projects/tree/_tree.html.haml
+1
-1
No files found.
CHANGELOG
View file @
ff07a5ab
v 6.6.0
- Permissions: Developer now can manage issue tracker (modify any issue)
v 6.5.1
v 6.5.1
- Fix branch selectbox when create merge request from fork
- Fix branch selectbox when create merge request from fork
...
...
app/controllers/projects/blob_controller.rb
View file @
ff07a5ab
...
@@ -6,6 +6,7 @@ class Projects::BlobController < Projects::ApplicationController
...
@@ -6,6 +6,7 @@ class Projects::BlobController < Projects::ApplicationController
before_filter
:authorize_read_project!
before_filter
:authorize_read_project!
before_filter
:authorize_code_access!
before_filter
:authorize_code_access!
before_filter
:require_non_empty_project
before_filter
:require_non_empty_project
before_filter
:authorize_push!
,
only:
[
:destroy
]
before_filter
:blob
before_filter
:blob
...
...
app/controllers/projects/edit_tree_controller.rb
View file @
ff07a5ab
class
Projects
::
EditTreeController
<
Projects
::
BaseTreeController
class
Projects
::
EditTreeController
<
Projects
::
BaseTreeController
before_filter
:require_branch_head
before_filter
:require_branch_head
before_filter
:blob
before_filter
:blob
before_filter
:authorize_push!
def
show
def
show
@last_commit
=
Gitlab
::
Git
::
Commit
.
last_for_path
(
@repository
,
@ref
,
@path
).
sha
@last_commit
=
Gitlab
::
Git
::
Commit
.
last_for_path
(
@repository
,
@ref
,
@path
).
sha
...
...
app/controllers/projects/issues_controller.rb
View file @
ff07a5ab
...
@@ -9,7 +9,7 @@ class Projects::IssuesController < Projects::ApplicationController
...
@@ -9,7 +9,7 @@ class Projects::IssuesController < Projects::ApplicationController
before_filter
:authorize_write_issue!
,
only:
[
:new
,
:create
]
before_filter
:authorize_write_issue!
,
only:
[
:new
,
:create
]
# Allow modify issue
# Allow modify issue
before_filter
:authorize_modify_issue!
,
only:
[
:edit
,
:update
]
before_filter
:authorize_modify_issue!
,
only:
[
:edit
,
:update
,
:bulk_update
]
respond_to
:html
respond_to
:html
...
...
app/controllers/projects/new_tree_controller.rb
View file @
ff07a5ab
class
Projects
::
NewTreeController
<
Projects
::
BaseTreeController
class
Projects
::
NewTreeController
<
Projects
::
BaseTreeController
before_filter
:require_branch_head
before_filter
:require_branch_head
before_filter
:authorize_push!
def
show
def
show
end
end
...
...
app/models/ability.rb
View file @
ff07a5ab
...
@@ -125,6 +125,7 @@ class Ability
...
@@ -125,6 +125,7 @@ class Ability
project_report_rules
+
[
project_report_rules
+
[
:write_merge_request
,
:write_merge_request
,
:write_wiki
,
:write_wiki
,
:modify_issue
,
:push_code
:push_code
]
]
end
end
...
...
app/views/help/permissions.html.haml
View file @
ff07a5ab
...
@@ -101,6 +101,13 @@
...
@@ -101,6 +101,13 @@
%td
.permission-x
✓
%td
.permission-x
✓
%td
.permission-x
✓
%td
.permission-x
✓
%tr
%tr
%td
Manage issue tracker
%td
%td
%td
.permission-x
✓
%td
.permission-x
✓
%td
.permission-x
✓
%tr
%td
Add new team members
%td
Add new team members
%td
%td
%td
%td
...
...
app/views/projects/tree/_tree.html.haml
View file @
ff07a5ab
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
=
link_to
truncate
(
title
,
length:
40
),
project_tree_path
(
@project
,
path
)
=
link_to
truncate
(
title
,
length:
40
),
project_tree_path
(
@project
,
path
)
-
else
-
else
=
link_to
title
,
'#'
=
link_to
title
,
'#'
-
if
@repository
.
branch_names
.
include?
(
@ref
)
-
if
current_user
&&
@repository
.
branch_names
.
include?
(
@ref
)
&&
current_user
.
can?
(
:push_code
,
@project
)
%li
%li
=
link_to
project_new_tree_path
(
@project
,
@id
),
title:
'New file'
,
id:
'new-file-link'
do
=
link_to
project_new_tree_path
(
@project
,
@id
),
title:
'New file'
,
id:
'new-file-link'
do
%small
%small
...
...
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