getRoleWriteAccess method

bool getRoleWriteAccess(
  1. ParseRole role
)

Get whether users belonging to the given role are allowed to write this object. Even if this returns false, the role may still be able to write it if a parent role has write 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 getRoleWriteAccess(ParseRole role) {
  _validateRoleState(role);
  return _map['role:${role.name}']?.write ?? false;
}