public function init()
{
parent::init();
// check permissions
$notRestrictedActions = ["get-current-user", "update-current-user", "get-available-permissions", "get-minimal", "get-image", "upload-current-user-image"];
if (!in_array($this->getParam("action"), $notRestrictedActions)) {
$this->checkPermission("users");
}
}