Newer
Older
dmpopidor / app / controllers / organisation_users_controller.rb
@Marta Ribeiro Marta Ribeiro on 3 Jun 2016 382 bytes DMPonline4 - RAILS 4.0 (#4)
class OrganisationUsersController < ApplicationController
	
	def admin_index
		if user_signed_in? && current_user.is_org_admin? then
			
			respond_to do |format|
				format.html # index.html.erb
				format.json { render json: @organisation_users }
			end
		else
			render(:file => File.join(Rails.root, 'public/403.html'), :status => 403, :layout => false)
		end 
	end
	
	

	
	
end