Remove priviledge check for powermanager.
authorHokwon Song <hokwon.song@samsung.com>
Tue, 24 Sep 2013 01:42:53 +0000 (10:42 +0900)
committerHokwon Song <hokwon.song@samsung.com>
Tue, 24 Sep 2013 01:44:29 +0000 (10:44 +0900)
Change-Id: I06bed58ebf4d8addb53f0a6bd6f004873a0c2bfd
Signed-off-by: Hokwon Song <hokwon.song@samsung.com>
src/system/FSysPowerManager.cpp

index 94afb4b..7123366 100644 (file)
@@ -121,10 +121,6 @@ PowerManager::GetScreenBrightness(void)
 bool
 PowerManager::IsScreenOn(void)
 {
-       result r = E_SUCCESS;
-       r = _AccessController::CheckUserPrivilege(_PRV_POWER);
-       SysTryReturn(NID_SYS, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED, ("[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method."));
-
        return _PowerManagerImpl::IsScreenOn();
 }