24 $this->isSuperuser =
true;
45 public function checkAccess($operation, $params = array(), $allowCaching =
true)
48 return $this->isSuperuser ===
true ?
true :
parent::checkAccess($operation, $params, $allowCaching);
56 $this->setState(
'Rights_isSuperuser', $value);
64 return $this->getState(
'Rights_isSuperuser');
72 $this->setState(
'Rights_returnUrl', $value);
87 if (($returnUrl = $this->getState(
'Rights_returnUrl')) !== null) {
88 $this->returnUrl = null;
91 return $returnUrl !== null ? CHtml::normalizeUrl($returnUrl) : CHtml::normalizeUrl($defaultUrl);
97 $user = Yii::app()->getModule(
'user')->user($this->
id);
98 $userAttributes = CMap::mergeArray(array(
99 'email' => $user->email,
100 'username' => $user->username,
101 'create_at' => $user->create_at,
102 'lastvisit_at' => $user->lastvisit_at,
103 ), $user->profile->getAttributes());
104 foreach ($userAttributes as $attrName => $attrValue) {
105 $this->setState($attrName, $attrValue);