mirror of
https://github.com/bitwarden/server
synced 2025-12-06 00:03:34 +00:00
fixed faulty conditional logic for showing enabled policy labels (#952)
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Bit.Portal.Models
|
||||
|
||||
foreach (var type in Enum.GetValues(typeof(PolicyType)).Cast<PolicyType>())
|
||||
{
|
||||
var enabled = policyDict?.ContainsKey(type) ?? false && policyDict[type].Enabled;
|
||||
var enabled = policyDict.ContainsKey(type) ? policyDict[type].Enabled : false;
|
||||
Policies.Add(new PolicyModel(type, enabled));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user