mirror of
https://github.com/bitwarden/mobile
synced 2025-12-18 09:13:15 +00:00
make sure totp copy isn't available if not premium
This commit is contained in:
@@ -29,7 +29,12 @@ namespace Bit.App.Utilities
|
||||
}
|
||||
if(!string.IsNullOrWhiteSpace(cipher.Login.Totp))
|
||||
{
|
||||
options.Add(AppResources.CopyTotp);
|
||||
var userService = ServiceContainer.Resolve<IUserService>("userService");
|
||||
var canAccessPremium = await userService.CanAccessPremiumAsync();
|
||||
if(canAccessPremium || cipher.OrganizationUseTotp)
|
||||
{
|
||||
options.Add(AppResources.CopyTotp);
|
||||
}
|
||||
}
|
||||
if(cipher.Login.CanLaunch)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user