mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
check enabled too
This commit is contained in:
@@ -376,7 +376,7 @@ namespace Bit.App.Services
|
||||
{
|
||||
_cryptoService.SetOrgKeys(profile.Result);
|
||||
_appSettingsService.OrganizationGivesPremium =
|
||||
profile.Result?.Organizations?.Any(o => o.UsersGetPremium) ?? false;
|
||||
profile.Result?.Organizations?.Any(o => o.UsersGetPremium && o.Enabled) ?? false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -543,7 +543,8 @@ namespace Bit.App.Services
|
||||
}
|
||||
|
||||
_cryptoService.SetOrgKeys(profile);
|
||||
_appSettingsService.OrganizationGivesPremium = profile.Organizations?.Any(o => o.UsersGetPremium) ?? false;
|
||||
_appSettingsService.OrganizationGivesPremium =
|
||||
profile.Organizations?.Any(o => o.UsersGetPremium && o.Enabled) ?? false;
|
||||
return Task.FromResult(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user