function init() { parent::init(); $this->onlyEditable($this->api->getAccessLevel()); /* if($this->api->auth){ $al=$this->api->auth->get('access_level'); if($al==0){ $this->addCondition('email',$this->api->auth->get('email')); $this->getField('email')->readonly(true); $this->getField('access_level')->destroy(); } elseif($al==9){ $d=explode('@',$this->api->auth->get('email')); $this->addCondition('domain',$d[1]); }elseif($al!=99){ throw $this->exception('Unknown user level') ->addMoreInfo('users level',$al); } } */ }
public function init() { parent::init(); $this->addField('order', ['default' => '10']); }
function init() { parent::init(); $this->addCondition('access_level', 9); }
function init() { parent::init(); $this->addCondition('type', 'WebsiteUser'); }
function init() { parent::init(); $this->addCondition('id', $this->api->getUserID()); }
function init() { parent::init(); $this->addCondition('type', 'AdminUser'); }
function init() { parent::init(); $this->addCondition('status', 'Active'); }
function init() { parent::init(); $this->addCondition('scope', 'SuperUser'); }