CLI client
This commit is contained in:
@@ -65,7 +65,7 @@ object ProjectHandler {
|
||||
}
|
||||
|
||||
fun createProject(user: User, req: ProjectRequest) = transaction {
|
||||
if(user.projectLimit != -1 && (user.projectLimit >= user.projects.count()))
|
||||
if(user.projectLimit != -1 && (user.projects.count() >= user.projectLimit))
|
||||
throw RouteError("You have reached your project limit.", HttpStatusCode.Conflict)
|
||||
|
||||
val proj = Project.new {
|
||||
|
||||
Reference in New Issue
Block a user