Change code to make first user an admin so they have access to reference editor

This commit is contained in:
2024-05-24 00:49:56 -04:00
parent 35748e6db4
commit e0309874d4
2 changed files with 16 additions and 2 deletions

View File

@ -33,6 +33,15 @@ class UserRepository extends ServiceEntityRepository implements PasswordUpgrader
$this->getEntityManager()->flush();
}
public function getUserCount(): int
{
return $this->createQueryBuilder('u')
->select('COUNT(u.id)')
->getQuery()
->getSingleScalarResult()
;
}
// /**
// * @return User[] Returns an array of User objects
// */