/** * Get whether the given user is *explicitly* allowed to write this object. * Even if this returns false, the user may still be able to access it if * getPublicWriteAccess returns true or a role that the user belongs to has * write access. * * @param AVUser $user * * @return bool * * @throws \Exception */ public function getUserWriteAccess($user) { if (!$user->getObjectId()) { throw new \Exception("cannot getWriteAccess for a user with null id"); } return $this->getWriteAccess($user->getObjectId()); }