getReadAccess method
Get whether the given user id is explicitly allowed to read this object. Even if this returns
false
, the user may still be able to access it if getPublicReadAccess returns
true
or a role that the user belongs to has read access.
Implementation
bool getReadAccess({required String userId}) {
return _permissionsById[userId]?.readPermission ?? false;
}