fixing for app_auth

This commit is contained in:
Matthew Fu committed 2012-01-05 16:20:51 +08:00
1 parent d3ca1647be
commit 7b40706aed
9 files changed
+225 -112

No files matched your search

@@ -4,7 +4,7 @@ class Admin::AppAuthsController < ApplicationController
before_filter :is_admin?
def index
@user_roles = UserRole.all.entries
@roles = Role.all.entries
apps = Purchase.where(:type =>"App")
@app_auth_data = apps.entries.map do |app|
app_c = eval(app.app_controller)
@@ -5,6 +5,13 @@ class ApplicationController < ActionController::Base
helper :all
before_filter :set_locale, :set_site
def front_end_available(module_app_title='')
app_controller = ModuleApp.first(conditions: {:title => module_app_title} )
unless app_controller.enable_frontend?
render :text => 'View not available'
end
end
def get_all_app_engines
ary = ["vender/plugins/NewBlog"]