Esempio n. 1
0
 /**
  * Check whether the role is valid or not.
  *
  * @param ParseRole $role
  *
  * @throws \Exception
  */
 private static function validateRoleState($role)
 {
     if (!$role->getObjectId()) {
         throw new \Exception("Roles must be saved to the server before they can be used in an ACL.");
     }
 }