summaryrefslogtreecommitdiffstats
path: root/core/Command/User/Report.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command/User/Report.php')
-rw-r--r--core/Command/User/Report.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/Command/User/Report.php b/core/Command/User/Report.php
index b7fecee61bb..66bc9bd3de1 100644
--- a/core/Command/User/Report.php
+++ b/core/Command/User/Report.php
@@ -27,6 +27,7 @@
namespace OC\Core\Command\User;
+use OCP\IConfig;
use OCP\IUserManager;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Table;
@@ -36,12 +37,15 @@ use Symfony\Component\Console\Output\OutputInterface;
class Report extends Command {
/** @var IUserManager */
protected $userManager;
+ /** @var IConfig */
+ private $config;
/**
* @param IUserManager $userManager
*/
- public function __construct(IUserManager $userManager) {
+ public function __construct(IUserManager $userManager, IConfig $config) {
$this->userManager = $userManager;
+ $this->config = $config;
parent::__construct();
}
@@ -73,6 +77,10 @@ class Report extends Command {
$rows[] = [' '];
$rows[] = ['user directories', $userDirectoryCount];
+ $disabledUsers = $this->config->getUsersForUserValue('core', 'enabled', 'false');
+ $disabledUsersCount = count($disabledUsers);
+ $rows[] = ['disabled users', $disabledUsersCount];
+
$table->setRows($rows);
$table->render();
return 0;