projects
/
platform
/
framework
/
native
/
appfw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b66cf9
)
Add privilege check code.
author
gs_.jung
<gs_.jung@samsung.com>
Wed, 23 Oct 2013 02:41:24 +0000
(11:41 +0900)
committer
gs_.jung
<gs_.jung@samsung.com>
Wed, 23 Oct 2013 02:41:24 +0000
(11:41 +0900)
Change-Id: I0cad394115943477ad32b2aa06f2201e3b2b62c9
src/system/FSysSettingInfo.cpp
patch
|
blob
|
history
diff --git
a/src/system/FSysSettingInfo.cpp
b/src/system/FSysSettingInfo.cpp
index
751b562
..
786b125
100644
(file)
--- a/
src/system/FSysSettingInfo.cpp
+++ b/
src/system/FSysSettingInfo.cpp
@@
-116,6
+116,9
@@
SettingInfo::SetVolume(const String& soundCategory, int level)
result
SettingInfo::GetValueForPrivilegedKey(const String& key, bool& value)
{
+ result r = _AccessController::CheckUserPrivilege(_PRV_SETTINGMANAGER_READ);
+ 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::GetValueForPrivilegedKey(key, value);
}