You misunderstood me. I'm not talking about your demo site. On my site, I'm trying to make a change to the access rights of a user who fills in a specific field in the profile and updates the profile
Here's what I did:
Created a Yes and No combo box.
The user selects Yes and should automatically change the access level
I selected trigger "onafterfieldrow", user access level "Registered", type " Uesrgroup"
In the second tab " Conditions "I specified the field name [cb_demo], operator" Equal "and value"Yes".
In the third tab I specified to change the user group from" Registered "to"Demo group".
As a result of activation of the trigger (before changing a record in a field) on my website in the personal account of the user 504 error. The same error is in the administrative panel of this user.
I would be grateful if you could explain my mistake.