Status property value can't be changed via the pre-register event anymore

Created on 27 May 2024, about 1 month ago
Updated 13 June 2024, 15 days ago

Problem/Motivation

After the release 2.3 the status property value can't be changed from the CasHelper::EVENT_PRE_REGISTER event any more due to the $property_values['status'] = (int) !$this->isAdminApprovalNeeded(); in CasUserManager::register() function.

In certain business cases we would like to maintain the possibility to override the status property on the user before the registration via the pre-register event, as before.

Steps to reproduce

Create an event subscriber for CasHelper::EVENT_PRE_REGISTER event and try to change the status through that.

Proposed resolution

Do not force the status value based on the $this->isAdminApprovalNeeded(); function.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.0

Component

CAS

Created by

πŸ‡§πŸ‡ͺBelgium joevagyok

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024