Пример #1
0
 public function hasAccess($permission, $forceCheckIfSuperuser = true)
 {
     if ($forceCheckIfSuperuser && $this->isSuperuser()) {
         return true;
     }
     return parent::hasAccess($permission);
 }