class SystemPicturesController < ApplicationController
- layout 'test' if MagicNumber['test_layout']
- if MagicNumber['run_mode'] == 0
+ if Manifest.manifest.magic_numbers['run_mode'] == 0
before_filter :authenticate_user, :only => []
before_filter :authenticate_author, :only => []
else
- before_filter :authenticate_resource_reader, :only => [:index, :show]
+ before_filter :authenticate_resource_reader, :only => [:index, :show, :speech_balloon_templates, :licenses]
before_filter :authenticate_user, :only => []
before_filter :authenticate_author, :only => []
end
def index
public_list
end
-
+
+ def speech_balloon_templates
+ has_many_list
+ end
+
+ def licenses
+ has_many_list
+ end
+
def show
@item = SystemPicture.show(params[:id], @operators)