Signed-off-by: lovechinamo <wangdongqi2@huawei.com>

Changes to be committed:
This commit is contained in:
lovechinamo
2022-04-27 15:11:06 +08:00
parent c20c5d1d37
commit 21fc5deebc
+2 -2
View File
@@ -46,10 +46,10 @@ bool TimePermission::CheckCallingPermission(int32_t uid, std::string permName)
return true;
}
auto callingToken = IPCSkeleton::GetCallingTokenID();
auto tokenType = Security::AccessToken::AccessTokenKit::GetTokenTypeFlag(callingToken);
if (tokenType == Security::AccessToken::ATokenTypeEnum::TOKEN_NATIVE) {
TIME_HILOGD(TIME_MODULE_COMMON, "native token.");
TIME_HILOGD(TIME_MODULE_COMMON, "native taskId.");
return true;
}
auto result = Security::AccessToken::AccessTokenKit::VerifyAccessToken(callingToken, permName);