The integrationtests expect a string
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
3955cf1412
commit
d363e2f0e3
|
@ -92,7 +92,7 @@ abstract class AUserData extends OCSController {
|
||||||
// Should be at least Admin Or SubAdmin!
|
// Should be at least Admin Or SubAdmin!
|
||||||
if( $this->groupManager->isAdmin($currentLoggedInUser->getUID())
|
if( $this->groupManager->isAdmin($currentLoggedInUser->getUID())
|
||||||
|| $this->groupManager->getSubAdmin()->isUserAccessible($currentLoggedInUser, $targetUserObject)) {
|
|| $this->groupManager->getSubAdmin()->isUserAccessible($currentLoggedInUser, $targetUserObject)) {
|
||||||
$data['enabled'] = $this->config->getUserValue($targetUserObject->getUID(), 'core', 'enabled', 'true') === 'true';
|
$data['enabled'] = $this->config->getUserValue($targetUserObject->getUID(), 'core', 'enabled', 'true');
|
||||||
} else {
|
} else {
|
||||||
// Check they are looking up themselves
|
// Check they are looking up themselves
|
||||||
if($currentLoggedInUser->getUID() !== $targetUserObject->getUID()) {
|
if($currentLoggedInUser->getUID() !== $targetUserObject->getUID()) {
|
||||||
|
|
Loading…
Reference in New Issue