public function view(UserPolicy $user, Job $job)
    {
        if ($user->canDo('career.job.view') && $user->isAdmin()) {
            return true;
        }

        return $job->user_id == user_id() && $job->user_type == user_type();
    }
public function view(UserPolicy $user, Job $job)
    {
        if ($user->canDo('career.job.view') && $user->isAdmin()) {
            return true;
        }

        return $job->user_id == user_id() && $job->user_type == user_type();
    }
public function view ( UserPolicy $ user , Job $ job ) { if ( $ user -> canDo ( 'career.job.view' ) && $ user -> isAdmin ( ) ) { return true ; } return $ job -> user_id == user_id ( ) && $ job -> user_type == user_type ( ) ; }
Determine if the given user can view the job.

@param UserPolicy $user
@param Job $job

@return bool
Determine if the given user can view the job .