@@ -185,7 +185,7 @@ public class AuthService {
|
||||
long currentCountUsers = userRepository.findByCompanyId(company.getId()).size();
|
||||
|
||||
//TODO add exception
|
||||
if (maxUsers < currentCountUsers) {
|
||||
if (currentCountUsers < maxUsers) {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user