merge with master
[platform/framework/native/telephony.git] / src / FTelNetworkStatus.cpp
index ce3ad9d..0e223d3 100644 (file)
@@ -45,7 +45,7 @@ NetworkStatus::IsRoaming(void) const
 {
        ClearLastResult();
 
-       result r = _AccessController::CheckUserPrivilege(_PRV_SYSTEMINFO);
+       result r = _AccessController::CheckUserPrivilege(_PRV_SYSTEMINFO, _PRV_TELEPHONY);
        SysTryReturn(NID_TEL, r == E_SUCCESS, false, E_PRIVILEGE_DENIED,
                "[%s] The application does not have the privilege to call this method.", GetErrorMessage(E_PRIVILEGE_DENIED));
 
@@ -61,7 +61,7 @@ NetworkStatus::IsCallServiceAvailable(void) const
 {
        ClearLastResult();
 
-       result r = _AccessController::CheckUserPrivilege(_PRV_SYSTEMINFO);
+       result r = _AccessController::CheckUserPrivilege(_PRV_SYSTEMINFO, _PRV_TELEPHONY);
        SysTryReturn(NID_TEL, r == E_SUCCESS, false, E_PRIVILEGE_DENIED,
                "[%s] The application does not have the privilege to call this method.", GetErrorMessage(E_PRIVILEGE_DENIED));
 
@@ -77,7 +77,7 @@ NetworkStatus::IsDataServiceAvailable(void) const
 {
        ClearLastResult();
 
-       result r = _AccessController::CheckUserPrivilege(_PRV_SYSTEMINFO);
+       result r = _AccessController::CheckUserPrivilege(_PRV_SYSTEMINFO, _PRV_TELEPHONY);
        SysTryReturn(NID_TEL, r == E_SUCCESS, false, E_PRIVILEGE_DENIED,
                "[%s] The application does not have the privilege to call this method.", GetErrorMessage(E_PRIVILEGE_DENIED));