Update change log and spec for wrt-plugins-tizen_0.4.27
[framework/web/wrt-plugins-tizen.git] / src / NetworkBearerSelection / JSNetworkBearerSelection.cpp
index b6a9a2c..ec19246 100755 (executable)
@@ -133,6 +133,9 @@ JSValueRef JSNetworkBearerSelection::requestRouteToHost(JSContextRef context, JS
         }
     }
 
+       AceSecurityStatus status = NETWORKBEARERSELECTION_CHECK_ACCESS(NETWORKBEARERSELECTION_FUNCTION_API_REQUEST_ROUTE_TO_HOST);
+       TIZEN_SYNC_ACCESS_HANDLER(status, context, exception);
+
        JSValueRef onsuccess;
        JSValueRef onpaused;
        JSValueRef onresumed;
@@ -235,6 +238,9 @@ JSValueRef JSNetworkBearerSelection::releaseRouteToHost(JSContextRef context, JS
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, "Type missmatch error");
     }
 
+       AceSecurityStatus status = NETWORKBEARERSELECTION_CHECK_ACCESS(NETWORKBEARERSELECTION_FUNCTION_API_RELEASE_ROUTE_TO_HOST);
+       TIZEN_SYNC_ACCESS_HANDLER(status, context, exception);
+
     std::string networkType = converter.toString(arguments[0]);
     std::string domainName = converter.toString(arguments[1]);
     if (strcmp(networkType.c_str(), "CELLULAR") != 0) {