forked from saurabh/orbit4-5
add need_access_right method in OrbitBackendHelper
This commit is contained in:
parent
f44e6646f1
commit
0e6caf4e5a
|
@ -145,6 +145,10 @@ module OrbitBackendHelper
|
|||
render "public/401"
|
||||
end
|
||||
|
||||
def need_access_right
|
||||
render_401 if !has_access?
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
module Orbit::FormBuilder
|
||||
|
|
Loading…
Reference in New Issue