Skip to content

Allow `current_user` and `can?` for UserProfile::Panel

Thomas Hutterer requested to merge 410983_fix_unconfirmed_user_profile into master

What does this MR do and why?

Fixes #410983 (closed).

Allow current_user and can? for UserProfile::Panel. Otherwise, for unconfirmed (bot) users, the call to user_display_name failed.

Screenshots or screen recordings

image

How to set up and validate locally

Go to http://gdk.test:3000/alert-bot

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Thomas Hutterer

Merge request reports

Loading