Explorar el Código

Fix School creation permission check

Frans Bergman hace 7 años
padre
commit
0b63c0af2b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/controllers/schools_controller.rb

+ 1 - 1
app/controllers/schools_controller.rb

@@ -1,6 +1,6 @@
 class SchoolsController < ApplicationController
   before_action :set_school, only: [:show, :edit, :update, :destroy]
-  before_action :check_admin, only: [:new, :edit, :create, :update]
+  before_action :check_admin, only: [:edit, :update]
   before_action :check_global_admin, only: [:new, :create]
 
   def show