Commit fe59d343
Changed files (1)
app
controllers
admin
app/controllers/admin/admin_controller.rb
@@ -6,7 +6,7 @@ module Admin
private
def restrict_access!
- redirect_to root_path unless current_user.is_admin?
+ redirect_to root_path unless current_user.try(:is_admin?)
end
end
end