Fix new page form

Redirect to home when not authorized
Get only module_apps with app_pages for new and edit page
Change web_resource.json
This commit is contained in:
Christophe Vilayphiou committed 2012-05-13 23:48:34 +08:00
1 parent 01d0c002f5
commit e40c76bf5f
4 files changed
+4 -5

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ class OrbitBackendController< ApplicationController
def check_user_can_use
unless check_permission
#redirect_to polymorphic_path(['panel',@app_title,'back_end','public'])
render :text => '403 Forbidden'
redirect_to root_url
end
end