Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/utils/validation-utils.js
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | |||||
async function policiesValidator( | async function policiesValidator( | ||||
viewer: Viewer, | viewer: Viewer, | ||||
policies: $ReadOnlyArray<PolicyType>, | policies: $ReadOnlyArray<PolicyType>, | ||||
) { | ) { | ||||
if (!policies.length) { | if (!policies.length) { | ||||
return; | return; | ||||
} | } | ||||
if (!hasMinCodeVersion(viewer.platformDetails, 1000)) { | if (!hasMinCodeVersion(viewer.platformDetails, 181)) { | ||||
return; | return; | ||||
} | } | ||||
const notAcknowledgedPolicies = await fetchNotAcknowledgedPolicies( | const notAcknowledgedPolicies = await fetchNotAcknowledgedPolicies( | ||||
viewer.id, | viewer.id, | ||||
policies, | policies, | ||||
); | ); | ||||
Show All 13 Lines |