Fixed import data controller to work for admin and user only

This commit is contained in:
saurabhbhatia authored and Manson Wang committed 2014-01-13 15:50:44 +08:00
1 parent 363a87ee2a
commit bc05eca7cc
2 files changed
+2 -2

No files matched your search

@@ -6,6 +6,8 @@ require 'open-uri'
class Admin::ImportDataController < OrbitBackendController
# helper Admin::PagePartsHelper
# include Admin::FrontendWidgetInterface
open_for_user
open_for_admin
def get_teacher_data
uri = URI("https://localhost:8000/teachers.xml")