mirror of
https://github.com/openharmony/miscservices_time.git
synced 2026-07-19 20:03:38 -04:00
Signed-off-by: lovechinamo <wangdongqi2@huawei.com>
Changes to be committed:
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user