scan should require admin priveliges

This commit is contained in:
Espen Antonsen 2011-04-11 15:53:24 +08:00
parent 054761b426
commit af3f3bada1

View file

@ -1,6 +1,6 @@
class PhotosController < ApplicationController
before_filter :check_public_access
before_filter :require_role_admin, :only => [:untouched, :upload, :new, :create, :edit, :update, :destroy]
before_filter :require_role_admin, :only => [:untouched, :upload, :new, :create, :edit, :update, :destroy, :scan]
def index
if params[:tag_id] && params[:album_id]