From ec22979268a4d9ae759e5c8019a30ed77f91df52 Mon Sep 17 00:00:00 2001 From: Joohyun Kim Date: Fri, 2 Aug 2013 08:50:17 +0900 Subject: [PATCH] Remove privilege check on setting Change-Id: I08bff25a16605b9103651878bdaadb088d69ce1b Signed-off-by: Joohyun Kim --- src/system/FSysSettingInfo.cpp | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/system/FSysSettingInfo.cpp b/src/system/FSysSettingInfo.cpp index ebb52c4..751b562 100644 --- a/src/system/FSysSettingInfo.cpp +++ b/src/system/FSysSettingInfo.cpp @@ -98,27 +98,18 @@ SettingInfo::GetValue(const String& key, UuId& value) result SettingInfo::SetWallpaper(const String& filePath) { - result r = E_SUCCESS; - r = _AccessController::CheckUserPrivilege(_PRV_SETTING); - 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 _SettingInfoImpl::SetWallpaper(filePath); } result SettingInfo::SetRingtone(const String& filePath) { - result r = E_SUCCESS; - r = _AccessController::CheckUserPrivilege(_PRV_SETTING); - 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 _SettingInfoImpl::SetRingtone(filePath); } result SettingInfo::SetVolume(const String& soundCategory, int level) { - result r = E_SUCCESS; - r = _AccessController::CheckUserPrivilege(_PRV_SETTING); - 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 _SettingInfoImpl::SetVolume(soundCategory, level); } @@ -136,28 +127,19 @@ SettingInfo::HasKey(const String& key) result SettingInfo::SetValue(const String& key, bool value) -{ - result r = E_SUCCESS; - r = _AccessController::CheckUserPrivilege(_PRV_SETTING); - 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 _SettingInfoImpl::SetValue(key, value); } result SettingInfo::SetValue(const String& key, int value) { - result r = E_SUCCESS; - r = _AccessController::CheckUserPrivilege(_PRV_SETTING); - 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 _SettingInfoImpl::SetValue(key, value); } result SettingInfo::SetValue(const String& key, String value) { - result r = E_SUCCESS; - r = _AccessController::CheckUserPrivilege(_PRV_SETTING); - 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 _SettingInfoImpl::SetValue(key, value); } @@ -182,16 +164,12 @@ SettingInfo::ResetToFactoryDefault(void) result SettingInfo::SetValueAsync(const String& key, bool value, ISettingInfoSetValueAsyncResultListener* listener) { - result r = E_SUCCESS; - r = _AccessController::CheckUserPrivilege(_PRV_SETTING); - 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 _SettingInfoImpl::SetValueAsync(key, value, listener); } result SettingInfo::SetValueAsyncForPrivilegedKey(const String& key, bool value, ISettingInfoSetValueAsyncResultListener* listener) { - result r = E_SUCCESS; return _SettingInfoImpl::SetValueAsyncForPrivilegedKey(key, value, listener); } -- 2.7.4