authorized user now able edit page context
This commit is contained in:
parent
ced7a59555
commit
1945921fcb
|
@ -280,7 +280,7 @@ module OrbitCoreLib
|
||||||
|
|
||||||
def check_user_can_use
|
def check_user_can_use
|
||||||
unless current_or_guest_user.admin? || (@module_app.is_manager?(current_or_guest_user) if @module_app.present?) || (@module_app.is_sub_manager?(current_or_guest_user) if @module_app.present?) || (@module_app.can_approve?(current_or_guest_user) if @module_app.present?)
|
unless current_or_guest_user.admin? || (@module_app.is_manager?(current_or_guest_user) if @module_app.present?) || (@module_app.is_sub_manager?(current_or_guest_user) if @module_app.present?) || (@module_app.can_approve?(current_or_guest_user) if @module_app.present?)
|
||||||
redirect_to root_url
|
redirect_to admin_dashboards_url
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue