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