fix TC failure
[framework/osp/social.git] / src / FSclPerson.cpp
index 1707947..91a33fb 100644 (file)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -146,8 +145,8 @@ Person::SetAsPrimaryEmail(const Email& email)
 
 PhoneNumber
 Person::GetPrimaryPhoneNumber(void) const
-{      
-       result r = _AccessController::CheckUserPrivilege(_PRV_CONTACT_WRITE);
+{
+       result r = _AccessController::CheckUserPrivilege(_PRV_CONTACT_READ);
        r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
        SysTryReturn(NID_SCL, r == E_SUCCESS, PhoneNumber(), r, "[%s] The application is not permitted to call this method.", GetErrorMessage(r));
 
@@ -157,7 +156,7 @@ Person::GetPrimaryPhoneNumber(void) const
 Email
 Person::GetPrimaryEmail(void) const
 {
-       result r = _AccessController::CheckUserPrivilege(_PRV_CONTACT_WRITE);
+       result r = _AccessController::CheckUserPrivilege(_PRV_CONTACT_READ);
        r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
        SysTryReturn(NID_SCL, r == E_SUCCESS, Email(), r, "[%s] The application is not permitted to call this method.", GetErrorMessage(r));