403 for unauth apps
This commit is contained in:
parent
c4db7e2157
commit
6b151b1fb6
|
@ -22,7 +22,8 @@ class OrbitBackendController< ApplicationController
|
||||||
|
|
||||||
def check_user_can_use
|
def check_user_can_use
|
||||||
unless check_permission
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Reference in New Issue