Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
ff07a5ab
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ff07a5ab
编写于
1月 24, 2014
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'improve/developer_permissions' into 'master'
Permissions: Developer can manage issue tracker now
上级
baccb9a4
237ddd60
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
16 addition
and
2 deletion
+16
-2
CHANGELOG
CHANGELOG
+3
-0
app/controllers/projects/blob_controller.rb
app/controllers/projects/blob_controller.rb
+1
-0
app/controllers/projects/edit_tree_controller.rb
app/controllers/projects/edit_tree_controller.rb
+1
-0
app/controllers/projects/issues_controller.rb
app/controllers/projects/issues_controller.rb
+1
-1
app/controllers/projects/new_tree_controller.rb
app/controllers/projects/new_tree_controller.rb
+1
-0
app/models/ability.rb
app/models/ability.rb
+1
-0
app/views/help/permissions.html.haml
app/views/help/permissions.html.haml
+7
-0
app/views/projects/tree/_tree.html.haml
app/views/projects/tree/_tree.html.haml
+1
-1
未找到文件。
CHANGELOG
浏览文件 @
ff07a5ab
v 6.6.0
- Permissions: Developer now can manage issue tracker (modify any issue)
v 6.5.1
- Fix branch selectbox when create merge request from fork
...
...
app/controllers/projects/blob_controller.rb
浏览文件 @
ff07a5ab
...
...
@@ -6,6 +6,7 @@ class Projects::BlobController < Projects::ApplicationController
before_filter
:authorize_read_project!
before_filter
:authorize_code_access!
before_filter
:require_non_empty_project
before_filter
:authorize_push!
,
only:
[
:destroy
]
before_filter
:blob
...
...
app/controllers/projects/edit_tree_controller.rb
浏览文件 @
ff07a5ab
class
Projects::EditTreeController
<
Projects
::
BaseTreeController
before_filter
:require_branch_head
before_filter
:blob
before_filter
:authorize_push!
def
show
@last_commit
=
Gitlab
::
Git
::
Commit
.
last_for_path
(
@repository
,
@ref
,
@path
).
sha
...
...
app/controllers/projects/issues_controller.rb
浏览文件 @
ff07a5ab
...
...
@@ -9,7 +9,7 @@ class Projects::IssuesController < Projects::ApplicationController
before_filter
:authorize_write_issue!
,
only:
[
:new
,
:create
]
# Allow modify issue
before_filter
:authorize_modify_issue!
,
only:
[
:edit
,
:update
]
before_filter
:authorize_modify_issue!
,
only:
[
:edit
,
:update
,
:bulk_update
]
respond_to
:html
...
...
app/controllers/projects/new_tree_controller.rb
浏览文件 @
ff07a5ab
class
Projects::NewTreeController
<
Projects
::
BaseTreeController
before_filter
:require_branch_head
before_filter
:authorize_push!
def
show
end
...
...
app/models/ability.rb
浏览文件 @
ff07a5ab
...
...
@@ -125,6 +125,7 @@ class Ability
project_report_rules
+
[
:write_merge_request
,
:write_wiki
,
:modify_issue
,
:push_code
]
end
...
...
app/views/help/permissions.html.haml
浏览文件 @
ff07a5ab
...
...
@@ -100,6 +100,13 @@
%td
.permission-x
✓
%td
.permission-x
✓
%td
.permission-x
✓
%tr
%td
Manage issue tracker
%td
%td
%td
.permission-x
✓
%td
.permission-x
✓
%td
.permission-x
✓
%tr
%td
Add new team members
%td
...
...
app/views/projects/tree/_tree.html.haml
浏览文件 @
ff07a5ab
...
...
@@ -9,7 +9,7 @@
=
link_to
truncate
(
title
,
length:
40
),
project_tree_path
(
@project
,
path
)
-
else
=
link_to
title
,
'#'
-
if
@repository
.
branch_names
.
include?
(
@ref
)
-
if
current_user
&&
@repository
.
branch_names
.
include?
(
@ref
)
&&
current_user
.
can?
(
:push_code
,
@project
)
%li
=
link_to
project_new_tree_path
(
@project
,
@id
),
title:
'New file'
,
id:
'new-file-link'
do
%small
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录