app/controllers/admin/snippets_controller.rb in radiant-0.8.2 vs app/controllers/admin/snippets_controller.rb in radiant-0.9.0.rc2

- old
+ new

@@ -1,8 +1,7 @@ class Admin::SnippetsController < Admin::ResourceController - def show - respond_to do |format| - format.xml { super } - format.html { redirect_to edit_admin_snippet_path(params[:id]) } - end - end + only_allow_access_to :index, :show, :new, :create, :edit, :update, :remove, :destroy, + :when => [:designer, :admin], + :denied_url => { :controller => 'admin/pages', :action => 'index' }, + :denied_message => 'You must have designer privileges to perform this action.' + end