diff --git a/window_scene/session_manager/src/scene_session_manager.cpp b/window_scene/session_manager/src/scene_session_manager.cpp index f0ce2e574b5a0f45fb97d5a955761a8cb97ac77d..0ebdb8014741ac5007493ac11f91a42167649b49 100644 --- a/window_scene/session_manager/src/scene_session_manager.cpp +++ b/window_scene/session_manager/src/scene_session_manager.cpp @@ -4145,10 +4145,6 @@ void SceneSessionManager::NotifySessionMovedToFront(int32_t persistentId) WSError SceneSessionManager::SetSessionLabel(const sptr &token, const std::string &label) { WLOGFI("run SetSessionLabel"); - if (!SessionPermission::JudgeCallerIsAllowedToUseSystemAPI()) { - WLOGFE("The caller is not system-app, can not use system-api"); - return WSError::WS_ERROR_NOT_SYSTEM_APP; - } auto task = [this, &token, &label]() { auto sceneSession = FindSessionByToken(token);