예제 #1
0
파일: Acl.php 프로젝트: junjinZ/wealthbot
 /**
  * Throw exception if ria user has not ROLE_RIA role
  *
  * @param User $ria
  * @throws \InvalidArgumentException
  */
 private function checkIsRiaUser(User $ria)
 {
     if (!$ria->hasRole('ROLE_RIA')) {
         throw new \InvalidArgumentException('User does not have ria permissions.');
     }
 }