askuser_check_result ApiInterfaceImpl::checkPrivilege(const std::string &privilege)
{
- std::string appId = getOwnAppId();
+ std::string appId = getOwnAppId(m_pkgInfo);
PrivilegePolicy privPolicy(appId, privilege);
- auto policyLevel = privPolicy.calculatePolicy();
+ auto policyLevel = privPolicy.calculatePolicy(m_appInfo);
if (policyLevel == "Allow") {
return ASKUSER_CHECK_RESULT_ALLOW;