# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- Base (BASE)
+++ Locally Modified (Based On LOCAL)
@@ -39,3 +39,15 @@
 function uc_disable_enable() {
   drupal_set_message(t("uc_disable enabled: Ubercart Store will now be enabled only for roles with 'enable store checkout' in User Permissions page."));
 }
+
+/**
+ * Implementation of hook_menu_alter()
+ */
+function uc_disable_menu_alter(&$items) {
+  // Prevent users without permission from accessing cart pages
+  $access = array('enable store checkout');
+  $items['cart']['access arguments'] = $access;
+  $items['cart/checkout']['access arguments'] = $access;
+  $items['cart/checkout/review']['access arguments'] = $access;
+  $items['cart/checkout/complete']['access arguments'] = $access;
+}
