summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2019-08-17 05:56:48 +0000
committerPaul Slaughter <pslaughter@gitlab.com>2019-08-17 05:56:48 +0000
commit9be16e1f495655e68bc980fced9a8075223ccccf (patch)
treec3ac8db7b555e7b4aef5d1d9f12eb08ad17dd5dd /app/serializers
parent9eabc0d6fc268023db13e8dad315f99f4fe1a6da (diff)
downloadgitlab-ce-9be16e1f495655e68bc980fced9a8075223ccccf.tar.gz
UI for disabling group/project email notification
- Adds UI to configure in group and project settings - Removes notification configuration for users when disabled at group or project level
Diffstat (limited to 'app/serializers')
-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 61de3c93337..c02fd024345 100644
--- a/app/serializers/issuable_sidebar_basic_entity.rb
+++ b/app/serializers/issuable_sidebar_basic_entity.rb
@@ -98,6 +98,10 @@ class IssuableSidebarBasicEntity < Grape::Entity
autocomplete_projects_path(project_id: issuable.project.id)
end
+ expose :project_emails_disabled do |issuable|
+ issuable.project.emails_disabled?
+ end
+
private
def current_user