Closed Mim0oo closed 6 years ago
Update: Need to add the following to the default switch case in order to remove admin rights when updating to another profile type: default: ++++ $userObject->hasAdmin = false; $userObject->save();
not so sure for side-effects. Should be better managed via automatically applied roles probably (define a role automatically applied to "admin" profiles).
Hello, can you please review this change and advise. Thanks!