code: public function view(User $user, User $givenUser)
      {
          if ($user->hasPermissionTo(Permission::USER_READ_ALL)) {
              return true;
          }
  
          return $user->id === $givenUser->id;
      }
docs: Determine whether the user can view the user.
  
  @param  \Unite\UnisysApi\Models\User  $user
  @param  \Unite\UnisysApi\Models\User  $givenUser
  @return mixed