Commit 27fab2bf authored by Jiri Strojil's avatar Jiri Strojil

Policies adjusted

parent 9f2b68de
Pipeline #32858 passed with stage
in 35 minutes and 48 seconds
......@@ -8,9 +8,7 @@ class SemesterProcessPolicy < ApplicationPolicy
end
# Actions
alias_method :index?, :superadmin?
alias_method :new?, :superadmin?
alias_method :show?, :superadmin?
alias_method :edit?, :superadmin?
alias_method :create?, :superadmin?
alias_method :update?, :superadmin?
......
......@@ -103,7 +103,7 @@ Rails.application.routes.draw do
put :mark_as_done, on: :member
put :update_notes, on: :member
end
resources :semester_processes, except: [:destroy] do
resources :semester_processes, except: [:destroy, :index, :show] do
get :overdue, on: :member
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment