OSDN Git Service

t#30200:update i18n devise
[pettanr/pettanr.git] / app / controllers / original_pictures_controller.rb
index 5f053a9..d3910c8 100644 (file)
@@ -2,6 +2,7 @@
 class OriginalPicturesController < ApplicationController
   layout 'test' if MagicNumber['test_layout']
   before_filter :authenticate_user!, :only => [:index, :show, :history, :new, :edit, :create, :update, :destroy]
+  before_filter :authenticate_author, :only => [:index, :show, :history, :new, :edit, :create, :update, :destroy]
   before_filter :authenticate_admin!, :only => [:list, :browse]
   before_filter :authenticate_artist, :only => [:index, :show, :history, :new, :edit, :create, :update, :destroy]