diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-17 19:05:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-17 19:05:49 +0300 |
commit | 43a25d93ebdabea52f99b05e15b06250cd8f07d7 (patch) | |
tree | dceebdc68925362117480a5d672bcff122fb625b /app/serializers/jira_connect | |
parent | 20c84b99005abd1c82101dfeff264ac50d2df211 (diff) |
Add latest changes from gitlab-org/gitlab@16-0-stable-eev16.0.0-rc42
Diffstat (limited to 'app/serializers/jira_connect')
-rw-r--r-- | app/serializers/jira_connect/app_data_serializer.rb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/app/serializers/jira_connect/app_data_serializer.rb b/app/serializers/jira_connect/app_data_serializer.rb index 994ff19f96e..5e275f35beb 100644 --- a/app/serializers/jira_connect/app_data_serializer.rb +++ b/app/serializers/jira_connect/app_data_serializer.rb @@ -4,9 +4,8 @@ class JiraConnect::AppDataSerializer include Gitlab::Routing include ::API::Helpers::RelatedResourcesHelpers - def initialize(subscriptions, signed_in) + def initialize(subscriptions) @subscriptions = subscriptions - @signed_in = signed_in end def as_json @@ -15,14 +14,7 @@ class JiraConnect::AppDataSerializer { groups_path: api_v4_groups_path(params: { min_access_level: Gitlab::Access::MAINTAINER, skip_groups: skip_groups }), subscriptions: JiraConnect::SubscriptionEntity.represent(@subscriptions).as_json, - subscriptions_path: jira_connect_subscriptions_path, - login_path: signed_in? ? nil : jira_connect_users_path + subscriptions_path: jira_connect_subscriptions_path } end - - private - - def signed_in? - !!@signed_in - end end |