isConditionOk method
Future<bool?>
isConditionOk(
- AccessBloc accessBloc,
- String pluginCondition,
- AppModel app,
- MemberModel? member,
- bool isOwner,
- bool? isBlocked,
- PrivilegeLevel? privilegeLevel,
)
Implementation
Future<bool?> isConditionOk(
AccessBloc accessBloc,
String pluginCondition,
AppModel app,
MemberModel? member,
bool isOwner,
bool? isBlocked,
PrivilegeLevel? privilegeLevel) async {
if (member == null) return false;
if (pluginCondition == memberHasNoMembershipYet) {
return (privilegeLevel == PrivilegeLevel.noPrivilege);
}
return null;
}