From 93315a05fad7aefad0b1edc808c1f93828dddfd7 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Wed, 27 Feb 2013 02:53:25 +0100 Subject: [PATCH] Contacts: Use isAdminUser() --- lib/vcard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vcard.php b/lib/vcard.php index def10711..fed48f9b 100644 --- a/lib/vcard.php +++ b/lib/vcard.php @@ -450,7 +450,7 @@ class VCard { ); } - if ($addressbook['userid'] != \OCP\User::getUser() && !\OC_Group::inGroup(\OCP\User::getUser(), 'admin')) { + if ($addressbook['userid'] != \OCP\User::getUser() && !\OC_User::isAdminUser(\OCP\User::getUser())) { \OCP\Util::writeLog('contacts', __METHOD__.', ' . $addressbook['userid'] . ' != ' . \OCP\User::getUser(), \OCP\Util::DEBUG); $sharedAddressbook = \OCP\Share::getItemSharedWithBySource(