//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
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));
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));