From 634cf4ee06a4820eaa2431a272b9a223118cf884 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 11 Nov 2024 21:09:06 +0000 Subject: Adds is_admin to the User model and ensures only admin users can add new resource --- config/routes.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index 66bd997..3cf676f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,6 @@ Rails.application.routes.draw do resources :pdfresources + resources :users resource :session resources :passwords, param: :token resource :registration, only: [:new, :create] -- cgit v1.2.3