From fb1a78c550e1a1f74a9cbb7878cd0f7a4261e799 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 31 Jul 2014 17:12:57 +0800 Subject: [PATCH] added access level to this module --- app/controllers/admin/galleries_controller.rb | 2 +- app/controllers/admin/images_controller.rb | 2 +- app/views/admin/galleries/_album.html.erb | 4 +++- app/views/admin/galleries/_image.html.erb | 12 +++++++----- app/views/admin/galleries/show.html.erb | 14 ++++++++------ lib/gallery/engine.rb | 14 +++++++++----- 6 files changed, 29 insertions(+), 19 deletions(-) diff --git a/app/controllers/admin/galleries_controller.rb b/app/controllers/admin/galleries_controller.rb index 18741eb..15548e4 100644 --- a/app/controllers/admin/galleries_controller.rb +++ b/app/controllers/admin/galleries_controller.rb @@ -1,4 +1,4 @@ -class Admin::GalleriesController < ApplicationController +class Admin::GalleriesController < OrbitAdminController before_filter :setup_vars before_action :authenticate_user, :log_user_action, :except => "imgs" layout "back_end" diff --git a/app/controllers/admin/images_controller.rb b/app/controllers/admin/images_controller.rb index 761704b..8b0936d 100644 --- a/app/controllers/admin/images_controller.rb +++ b/app/controllers/admin/images_controller.rb @@ -1,4 +1,4 @@ -class Admin::ImagesController < ApplicationController +class Admin::ImagesController < OrbitAdminController before_filter :setup_vars def show @image = AlbumImage.find(params[:id]) diff --git a/app/views/admin/galleries/_album.html.erb b/app/views/admin/galleries/_album.html.erb index 9ae2301..bbce8f8 100644 --- a/app/views/admin/galleries/_album.html.erb +++ b/app/views/admin/galleries/_album.html.erb @@ -10,7 +10,9 @@