Fix GetPrivilegeListN method to retrieve the Privilege string with URI
authorhb.min <hb.min@samsung.com>
Mon, 18 Mar 2013 10:09:05 +0000 (19:09 +0900)
committerhb.min <hb.min@samsung.com>
Mon, 18 Mar 2013 10:09:05 +0000 (19:09 +0900)
Change-Id: I0d6b83e1d4431a50e5498ec157216063c0c2491a
Signed-off-by: hb.min <hb.min@samsung.com>
inc/FSecAccessController.h
src/security/FSec_PrivilegeManager.cpp

index 08d52aa..79477f3 100644 (file)
 //
 
 /**
- * @if VISPARTNER
  * @file       FSecAccessController.h
  * @brief      This is the header file for the %AccessController class.
  *
  * This header file contains the declarations of the %AccessController class.
- * @endif
  */
 
 #ifndef _FSEC_ACCESS_CONTROLLER_H_
index a59f0b3..2e2e3d2 100644 (file)
@@ -371,7 +371,8 @@ _PrivilegeManager::UnpackPrivilegeN(const byte* pBitwisePrivilege)
                        {
                                if (privilegeEnum == privilegeListTable[index].privilege)
                                {
-                                       String* privilegeString = new (std::nothrow) String(privilegeListTable[index].privilegeString);
+                                       String* privilegeString = new (std::nothrow) String(L"http://tizen.org/privilege/");
+                                       privilegeString->Append(privilegeListTable[index].privilegeString);
                                        SysTryCatch(NID_SEC, privilegeString != null, r = E_OUT_OF_MEMORY, E_OUT_OF_MEMORY,
                                                        "[E_OUT_OF_MEMORY]The memory is insufficient.");