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