소스 검색

Fix School creation permission check

Frans Bergman 7 년 전
부모
커밋
0b63c0af2b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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