mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-02-06 01:08:16 +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__.', '
|
\OCP\Util::writeLog('contacts', __METHOD__.', '
|
||||||
. $addressbook['userid'] . ' != ' . \OCP\User::getUser(), \OCP\Util::DEBUG);
|
. $addressbook['userid'] . ' != ' . \OCP\User::getUser(), \OCP\Util::DEBUG);
|
||||||
$sharedAddressbook = \OCP\Share::getItemSharedWithBySource(
|
$sharedAddressbook = \OCP\Share::getItemSharedWithBySource(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user