blob: 149fadafe5b802f4ee1f3f445df927287f1b66ee [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "ios/chrome/browser/policy/ui_bundled/user_policy_util.h"
#import "ios/chrome/browser/signin/model/authentication_service.h"
bool CanFetchUserPolicy(AuthenticationService* authService,
PrefService* prefService) {
// Return true if the primary identity is managed.
return authService->HasPrimaryIdentityManaged(signin::ConsentLevel::kSignin);
}