Esempio n. 1
0
 /**
  * Determine if the given article can be read by the user.
  *
  * @param  \User  $user
  * @param  \Article  $post
  * @return bool
  */
 public function read(User $user, HClass $class)
 {
     return \ClassUser::exists($user->id, $class->id);
 }