From: Tomasz Marciniak Date: Fri, 27 May 2016 11:14:08 +0000 (+0200) Subject: [Common][Filesystem] Fix for checking privilege. X-Git-Tag: accepted/tizen/common/20160530.131958~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F71887%2F2;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Common][Filesystem] Fix for checking privilege. [Verification] Code compiles. TCT privilege pass rate 100% Change-Id: Ie81b929b657bde2d800198dda7cb12aa10a45ed7 Signed-off-by: Tomasz Marciniak --- diff --git a/src/utils/utils_api.js b/src/utils/utils_api.js index 31ae67e..5502e3f 100644 --- a/src/utils/utils_api.js +++ b/src/utils/utils_api.js @@ -257,7 +257,7 @@ Utils.prototype.isAppVersionEarlierThan= function(ver) { } Utils.prototype.checkPrivilegeAccess4Ver = function(new_ver, new_priv, old_priv) { - if (this.isAppVersionEarlierThan(new_ver)) { + if (!this.isAppVersionEarlierThan(new_ver)) { this.checkPrivilegeAccess(new_priv); } else if (old_priv != undefined) { this.checkPrivilegeAccess(old_priv);