Ejemplo n.º 1
0
 /**
  * Checks if given banner is allowed to modify for the current user
  *
  * @param User $user
  * @param Banner $banner
  * @return boolean
  */
 public function isAllowedToModify(User $user, Banner $banner)
 {
     return $user === $banner->getUser();
 }