Sha256: fe1a72aba8641d7ca5e5cf12f1e4dc74ae182ce32cfa681f204c9e5e0f27adbb
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
class SharingEngineController < ApplicationController include SharingPluginHelper layout false before_filter :get_current_user_role # Load configuration items (MANDATORY, must be included) APP_CONFIG = HashWithIndifferentAccess.new(YAML.load(File.read(File.expand_path('../../../config/sharing/sharing_config.yml', __FILE__)))) def index end def configure # Check access if (@curUserRole == 'contentadmin' || @curUserRole == 'user' || @curUserRole == 'loggedin' || @curUserRole == 'anonymous') raise 'unauthorized access' end if request.xhr? respond_to do |t| t.html end else raise 'unauthorized access' end end def installer # Check access if (@curUserRole == 'contentadmin' || @curUserRole == 'user' || @curUserRole == 'loggedin' || @curUserRole == 'anonymous') raise 'unauthorized access' end if request.xhr? respond_to do |t| t.html end else raise 'unauthorized access' end end end
Version data entries
3 entries across 3 versions & 1 rubygems