function onShowEdit() { global $app; if ($app->tform->checkPerm($this->id, 'riud')) { $app->tform->formDef['tabs']['domain']['readonly'] = false; } parent::onShowEdit(); }