[common] replace cynara_simple_check() with cynara_check() 83/106583/1
authorHyunjin Park <hj.na.park@samsung.com>
Thu, 22 Dec 2016 06:11:24 +0000 (15:11 +0900)
committerHyunjin Park <hj.na.park@samsung.com>
Thu, 22 Dec 2016 06:11:24 +0000 (15:11 +0900)
cause: TSAM-11968 [SE][Store_App][Tizen_3.0_Public_Final_RC7][Mobile][000000062608_VaccineReminder.wgt]White screen after launch app and can't exit by back key

[verfication] result of web TCT are passed on filesystem, privilege, calendar

Change-Id: Ibd9a9cb243bf13e2e635e5e598b00ed891718f35

src/common/tools.cc

index 21f5064d6189f89a0127ad76e2176dd4253dce70..8a6a3d3c5e0b180e7513debdb5dc5f6474b028e3 100644 (file)
@@ -199,12 +199,12 @@ class AccessControlImpl {
 
     if (cynara_) {
       for (const auto& privilege : privileges) {
-        if (CYNARA_API_ACCESS_ALLOWED != cynara_simple_check(cynara_,  // p_cynara
-                                                             smack_label_.c_str(),  // client
-                                                             "", // client_session
-                                                             uid_.c_str(),  // user
-                                                             privilege.c_str()  // privilege
-                                                             )) {
+        if (CYNARA_API_ACCESS_ALLOWED != cynara_check(cynara_,  // p_cynara
+                                                      smack_label_.c_str(),  // client
+                                                      "", // client_session
+                                                      uid_.c_str(),  // user
+                                                      privilege.c_str()  // privilege
+                                                      )) {
           return false;
         }
       }