authorized user now able edit page context

This commit is contained in:
saurabhbhatia 2013-11-05 13:01:14 +08:00
parent ced7a59555
commit 1945921fcb
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ module OrbitCoreLib
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?)
redirect_to root_url
redirect_to admin_dashboards_url
end
end