Fix privilege (#1979)
authorchleun-moon <32117100+chleun-moon@users.noreply.github.com>
Fri, 4 Sep 2020 01:12:15 +0000 (10:12 +0900)
committerGitHub <noreply@github.com>
Fri, 4 Sep 2020 01:12:15 +0000 (10:12 +0900)
src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionInternalManager.cs

index 0cab539..b3cca9a 100644 (file)
@@ -560,7 +560,7 @@ namespace Tizen.Network.Connection
                 {
                     Log.Error(Globals.LogTag, "It failed to add route to the routing table, " + (ConnectionError)ret);
                     ConnectionErrorFactory.CheckFeatureUnsupportedException(ret, "http://tizen.org/feature/network.telephony " + "http://tizen.org/feature/network.wifi " + "http://tizen.org/feature/network.tethering.bluetooth " + "http://tizen.org/feature/network.ethernet");
-                    ConnectionErrorFactory.CheckPermissionDeniedException(ret, "(http://tizen.org/privilege/network.set)");
+                    ConnectionErrorFactory.CheckPermissionDeniedException(ret, "(http://tizen.org/privilege/network.route)");
                     ConnectionErrorFactory.CheckHandleNullException(ret, (GetHandle() == IntPtr.Zero), "Connection Handle may have been disposed or released");
                     ConnectionErrorFactory.ThrowConnectionException(ret);
                 }
@@ -582,7 +582,7 @@ namespace Tizen.Network.Connection
                 {
                     Log.Error(Globals.LogTag, "It failed to remove route from the routing table, " + (ConnectionError)ret);
                     ConnectionErrorFactory.CheckFeatureUnsupportedException(ret, "http://tizen.org/feature/network.telephony " + "http://tizen.org/feature/network.wifi " + "http://tizen.org/feature/network.tethering.bluetooth " + "http://tizen.org/feature/network.ethernet");
-                    ConnectionErrorFactory.CheckPermissionDeniedException(ret, "(http://tizen.org/privilege/network.set)");
+                    ConnectionErrorFactory.CheckPermissionDeniedException(ret, "(http://tizen.org/privilege/network.route)");
                     ConnectionErrorFactory.CheckHandleNullException(ret, (GetHandle() == IntPtr.Zero), "Connection Handle may have been disposed or released");
                     ConnectionErrorFactory.ThrowConnectionException(ret);
                 }