acceptPoliciesIfNone method
Implementation
Future<LoggedIn> acceptPoliciesIfNone(
LoggedIn toEmit, AppModel app, MemberModel member) async {
var theAppPolicies = await appPolicyRepository(appId: app.documentID)!
.valuesListWithDetails();
if (theAppPolicies.isEmpty) {
await LoggedIn.acceptMembership(member, app);
toEmit = toEmit.withSubscriptions(LoggedIn.getSubscriptions(member));
}
return toEmit;
}