mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-29 18:52:18 +01:00
Contacts: Use isAdminUser()
This commit is contained in:
parent
7047e3e7b3
commit
93315a05fa
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user