Added users support
This commit is contained in:
@@ -219,5 +219,10 @@ class ReservationsController < ApplicationController
|
||||
end
|
||||
|
||||
@company = Company.includes(:teams).find(company_id) if company_id
|
||||
|
||||
unless @company
|
||||
redirect_to companies_path, alert: 'No company found. Please create a company first.'
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user