udpate authorization for admin index
This commit is contained in:
parent
381c0ab337
commit
4b4a4cf92c
|
@ -4,8 +4,8 @@ class Admin::WritingConferencesController < OrbitMemberController
|
||||||
before_action :set_plugin
|
before_action :set_plugin
|
||||||
before_action :get_settings,:only => [:new, :edit, :setting]
|
before_action :get_settings,:only => [:new, :edit, :setting]
|
||||||
|
|
||||||
before_action :allow_admin_only, :only => [:setting]
|
before_action :need_access_right
|
||||||
before_action :need_access_right,:only => [ :new, :create, :edit, :update, :destroy, :frontend_setting, :update_frontend_setting]
|
before_action :allow_admin_only, :only => [:index, :setting]
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@writing_conferences = WritingConference.order_by(:year=>'desc').page(params[:page]).per(10)
|
@writing_conferences = WritingConference.order_by(:year=>'desc').page(params[:page]).per(10)
|
||||||
|
|
Loading…
Reference in New Issue