Skip to content

[5.x]: Frontend user management forms now hit CP requirement errors #18485

@chasegiunta

Description

@chasegiunta

What happened?

Description

Looks like some of the user management controllers were modified to require CP access. c3d02d4

We have a couple frontend forms that allow users (coaches) to suspend/unsuspend users of the their team, as well as send out activation emails.

Due to that update, those forms & frontend functionality are now broken.

Steps to reproduce

  1. Create frontend form that suspends/unsuspends user.
  2. Ensure you have moderate users permissions.
  3. Submit form to users/suspend-user action

Expected behavior

Selected user is suspended.

Actual behavior

User hits "Bad Request Request must be a control panel request" error

Craft CMS version

5.9.13

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions