add need_access_right method in OrbitBackendHelper

This commit is contained in:
manson 2014-08-01 12:27:46 +08:00
parent f44e6646f1
commit 0e6caf4e5a
1 changed files with 4 additions and 0 deletions

View File

@ -145,6 +145,10 @@ module OrbitBackendHelper
render "public/401" render "public/401"
end end
def need_access_right
render_401 if !has_access?
end
end end
module Orbit::FormBuilder module Orbit::FormBuilder