403 for unauth apps

This commit is contained in:
Matthew K. Fu JuYuan 2012-04-26 16:45:46 +08:00
parent bd9451f923
commit 1c7c283083
1 changed files with 2 additions and 1 deletions

View File

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