예제 #1
0
 /**
  * @Author: ANH DUNG Feb 04, 2015
  * @Todo: check can update trans or tenancy
  * @Param: $mTransactions
  */
 public static function CanUpdateTrans($mTransactions)
 {
     if (!ProTransactions::CanUpdateTenancyApproved($mTransactions)) {
         $link = Yii::app()->createAbsoluteUrl('admin');
         Yii::app()->controller->redirect($link);
     }
 }