pydio / pydio-core

Pydio 8 official repository
https://pydio.com
GNU Affero General Public License v3.0
867 stars 289 forks source link

Added function for user profile and admin rights update. #1374

Closed Mim0oo closed 6 years ago

Mim0oo commented 7 years ago

Hello, can you please review this change and advise. Thanks!

Mim0oo commented 7 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();

cdujeu commented 6 years ago

not so sure for side-effects. Should be better managed via automatically applied roles probably (define a role automatically applied to "admin" profiles).