public function update(UserPolicy $user, Resume $resume)
    {
        if ($user->canDo('career.resume.edit') && $user->isAdmin()) {
            return true;
        }

        return $resume->user_id == user_id() && $resume->user_type == user_type();
    }
public function update(UserPolicy $user, Resume $resume)
    {
        if ($user->canDo('career.resume.edit') && $user->isAdmin()) {
            return true;
        }

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

@param UserPolicy $user
@param Resume $resume

@return bool
Determine if the given user can update the given resume .