Starting companies and admin
This commit is contained in:
12
app/controllers/home_controller.rb
Normal file
12
app/controllers/home_controller.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class HomeController < ApplicationController
|
||||
def index
|
||||
if user_signed_in?
|
||||
if current_user.admin?
|
||||
|
||||
else
|
||||
end
|
||||
end
|
||||
|
||||
@companies = Company.all
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user