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
path: root/app
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-18 19:13:46 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-18 19:13:46 +0300
commit55a3913692e3341124adec08608f87e30c461603 (patch)
treec387967ee20374b9699fd1f669dd40b9570142e4 /app
parentf1ed8e540f1755b939a41700f34c136a2b530c19 (diff)
Add latest changes from gitlab-org/gitlab@16-4-stable-ee
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/ci/pipeline_schedules/components/table/cells/pipeline_schedule_actions.vue2
-rw-r--r--app/graphql/types/ci/pipeline_schedule_type.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/ci/pipeline_schedules/components/table/cells/pipeline_schedule_actions.vue b/app/assets/javascripts/ci/pipeline_schedules/components/table/cells/pipeline_schedule_actions.vue
index a56da06f5da..ed7c2bbeb73 100644
--- a/app/assets/javascripts/ci/pipeline_schedules/components/table/cells/pipeline_schedule_actions.vue
+++ b/app/assets/javascripts/ci/pipeline_schedules/components/table/cells/pipeline_schedule_actions.vue
@@ -34,7 +34,7 @@ export default {
return this.schedule.userPermissions.playPipelineSchedule;
},
isCurrentUserOwner() {
- return this.schedule.owner.username === this.currentUser.username;
+ return this.schedule.owner?.username === this.currentUser.username;
},
canTakeOwnership() {
return !this.isCurrentUserOwner && this.schedule.userPermissions.adminPipelineSchedule;
diff --git a/app/graphql/types/ci/pipeline_schedule_type.rb b/app/graphql/types/ci/pipeline_schedule_type.rb
index e2e3bd8cfbd..cb4d9860fab 100644
--- a/app/graphql/types/ci/pipeline_schedule_type.rb
+++ b/app/graphql/types/ci/pipeline_schedule_type.rb
@@ -17,7 +17,7 @@ module Types
field :description, GraphQL::Types::String, null: true, description: 'Description of the pipeline schedule.'
- field :owner, ::Types::UserType, null: false, description: 'Owner of the pipeline schedule.'
+ field :owner, ::Types::UserType, null: true, description: 'Owner of the pipeline schedule.'
field :active, GraphQL::Types::Boolean, null: false, description: 'Indicates if the pipeline schedule is active.'