authorized user now able edit page context

This commit is contained in:
saurabhbhatia committed 2013-11-05 13:01:58 +08:00
1 parent ced7a59555
commit 1945921fcb
1 file changed
+1 -1
+1 -1
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