getRoleReadAccess method

bool getRoleReadAccess(
  1. ParseRole role
)

Get whether users belonging to the given role are allowed to read this object. Even if this returns false, the role may still be able to read it if a parent role has read access. The role must already be saved on the server and its data must have been fetched in order to use this method.

Implementation

bool getRoleReadAccess(ParseRole role) {
  _validateRoleState(role);
  return _map['role:${role.name}']?.read ?? false;
}