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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
821b14be
Commit
821b14be
authored
Aug 03, 2018
by
Mark Chao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve naming
parent
bbe2bc71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ee/lib/ee/api/entities.rb
ee/lib/ee/api/entities.rb
+5
-5
No files found.
ee/lib/ee/api/entities.rb
View file @
821b14be
...
...
@@ -155,7 +155,7 @@ module EE
end
class
Epic
<
Grape
::
Entity
allowed_to_admin
=
->
(
epic
,
opts
)
{
Ability
.
allowed?
(
opts
[
:user
],
:admin_epic
,
epic
)
}
can_admin_epic
=
->
(
epic
,
opts
)
{
Ability
.
allowed?
(
opts
[
:user
],
:admin_epic
,
epic
)
}
expose
:id
expose
:iid
...
...
@@ -164,12 +164,12 @@ module EE
expose
:description
expose
:author
,
using:
::
API
::
Entities
::
UserBasic
expose
:start_date
expose
:start_date_is_fixed?
,
as: :start_date_is_fixed
,
if:
allowed_to_admin
expose
:start_date_fixed
,
:start_date_from_milestones
,
if:
allowed_to_admin
expose
:start_date_is_fixed?
,
as: :start_date_is_fixed
,
if:
can_admin_epic
expose
:start_date_fixed
,
:start_date_from_milestones
,
if:
can_admin_epic
expose
:end_date
# @deprecated
expose
:end_date
,
as: :due_date
expose
:due_date_is_fixed?
,
as: :due_date_is_fixed
,
if:
allowed_to_admin
expose
:due_date_fixed
,
:due_date_from_milestones
,
if:
allowed_to_admin
expose
:due_date_is_fixed?
,
as: :due_date_is_fixed
,
if:
can_admin_epic
expose
:due_date_fixed
,
:due_date_from_milestones
,
if:
can_admin_epic
expose
:created_at
expose
:updated_at
expose
:labels
do
|
epic
,
options
|
...
...
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