-
Admin UI : Trying to stop a user in Admin role to lock himself out of the application by using the following event:
Running the Admin-UI I get an error message but the database still updates. How do I stop the execution of the update ? Documentation is not clear either: Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
This is unlikely since the filter is executed before the user is updated which an Exception in the filter would prevent I'd recommend debugging into the framework sources so you find out what's causing the update. |
Beta Was this translation helpful? Give feedback.
-
Hi @mythz The problem is here you have not defined any events for the Lock User button , so it bypasses the update method altogether. We need something like an feature.OnBeforeUserLocked() event for this to work. My code will not work as I cannot hook into the event when the button was pressed. There is no way to override the button event as the Locked User is saved before the Update event. Therefor my code is in the wrong event altogether but there is no other event to use. |
Beta Was this translation helpful? Give feedback.
-
The Update events should now be fired for every User Update operation in the latest v8.6.1+ that's now available in the latest pre release packages |
Beta Was this translation helpful? Give feedback.
The Update events should now be fired for every User Update operation in the latest v8.6.1+ that's now available in the latest pre release packages