 refactor: refactor and improve platformUser restrictions, add some documentation (#4490)
 refactor: refactor and improve platformUser restrictions, add some documentation (#4490)

* refactor: refactor and improve platformUser restrictions, add some documentation

* refactor: use a lambda to slightly improve readability
dashpay/dash,UdjinM6/dash,dashpay/dash,thelazier/dash,dashpay/dash,thelazier/dash,thelazier/dash,UdjinM6/dash,UdjinM6/dash,dashpay/dash,UdjinM6/dash,thelazier/dash,dashpay/dash,thelazier/dash,UdjinM6/dash