$user->uid always returns NULL

Created on 4 March 2023, over 1 year ago
Updated 21 July 2023, about 1 year ago

Problem/Motivation

When checking permissions to render edit or deactivate links, links are render only of user has administer short URLs permission.
The reason is $user->uid always returns NULL

Proposed resolution

replace
$uid == $user->uid
with
$uid == $user->id()
every where in the code.

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇨🇭Switzerland lionel rousseau Geneva

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

Comments & Activities

Production build 0.71.5 2024