Access forbidden for systempay init form

Created on 8 December 2022, almost 2 years ago
Updated 30 March 2023, over 1 year ago

Problem/Motivation

The systempay.systempay_init_form route return AccessResult::forbidden.
This because \Drupal::currentUser()->id() return a string or an int.

Proposed resolution

Force convert to integer, replace:

if ((int) $payment->getOwnerId() !== $this->currentUser->id()) {

by:

if ((int) $payment->getOwnerId() !== (int) $this->currentUser->id()) {
🐛 Bug report
Status

Active

Component

Code

Created by

🇫🇷France slayne40

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024