Пример #1
0
 /**
  * Updates a new model.
  * If updating is successful, the browser will be refreshed
  *
  * @param $id
  * @param $scenario
  */
 public function actionEdit($id, $scenario = null)
 {
     if (!$this->isCurrentUser($id)) {
         $this->accessGranted(User::ROLE_ADMIN);
     }
     parent::actionEdit($id, 'update');
 }