diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-18 19:13:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-18 19:13:46 +0300 |
commit | 55a3913692e3341124adec08608f87e30c461603 (patch) | |
tree | c387967ee20374b9699fd1f669dd40b9570142e4 /app | |
parent | f1ed8e540f1755b939a41700f34c136a2b530c19 (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.vue | 2 | ||||
-rw-r--r-- | app/graphql/types/ci/pipeline_schedule_type.rb | 2 |
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.' |