From 177190573ab2d9c69b484ea2bb69207182a375ad Mon Sep 17 00:00:00 2001 From: wangyb0625 Date: Wed, 27 Apr 2022 13:40:23 +0800 Subject: [PATCH] =?UTF-8?q?CheckPermission=E8=BF=94=E5=9B=9E=E5=80=BC?= =?UTF-8?q?=E8=B0=83=E6=95=B4=20Signed-off-by:=20wangyb0625=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/src/permission/standard/permission_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/src/permission/standard/permission_manager.cpp b/utils/src/permission/standard/permission_manager.cpp index 82a0ad7af..48fa27623 100644 --- a/utils/src/permission/standard/permission_manager.cpp +++ b/utils/src/permission/standard/permission_manager.cpp @@ -71,7 +71,7 @@ bool PermissionManager::CheckPermission(void) sptr iBundleMgr = iface_cast(remoteObject); if (iBundleMgr == nullptr) { LOGI("iBundleMgr is nullptr, caller may be a process"); - return true; + return false; } LOGI("PermissionManager::tokenTypeFlag is hap process"); return iBundleMgr->CheckIsSystemAppByUid(uid); -- Gitee