Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/issuable_sidebar_basic_entity.rb')
-rw-r--r--app/serializers/issuable_sidebar_basic_entity.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/serializers/issuable_sidebar_basic_entity.rb b/app/serializers/issuable_sidebar_basic_entity.rb
index b66aad6cc65..9039606a8e5 100644
--- a/app/serializers/issuable_sidebar_basic_entity.rb
+++ b/app/serializers/issuable_sidebar_basic_entity.rb
@@ -38,6 +38,10 @@ class IssuableSidebarBasicEntity < Grape::Entity
expose :can_admin_label do |issuable|
can?(current_user, :admin_label, issuable.project)
end
+
+ expose :can_create_timelogs do |issuable|
+ can?(current_user, :create_timelog, issuable)
+ end
end
expose :issuable_json_path do |issuable|