public function setUserReadAccess($user, $allowed)
    {
        if (!$user->getObjectId())
        {
            throw new \Exception("cannot setReadAccess for a user with null id");
        }
        $this->setReadAccess($user->getObjectId(), $allowed);
    }
public function setUserReadAccess($user, $allowed)
    {
        if (!$user->getObjectId())
        {
            throw new \Exception("cannot setReadAccess for a user with null id");
        }
        $this->setReadAccess($user->getObjectId(), $allowed);
    }
public function setUserReadAccess ( $ user , $ allowed ) { if ( ! $ user -> getObjectId ( ) ) { throw new \ Exception ( "cannot setReadAccess for a user with null id" ) ; } $ this -> setReadAccess ( $ user -> getObjectId ( ) , $ allowed ) ; }
Set whether the given user is allowed to read this object.

@param AVUser $user
@param bool $allowed

@throws \Exception
Set whether the given user is allowed to read this object .