On the order Management View I have 3 options selected: Delete Order, Change Order Status and Print Orders.

These "buttons" show for user #1, but do not show up for second levels admins (another role with ALL permissions.)

I see no place in Permissions to give permissions for using UC VBO, or UC Views.

HELP!?!

Comments

longwave’s picture

Status: Active » Postponed (maintainer needs more info)

These show up for me under all users, there are no permission checks on the VBO order actions. Please provide an exported copy of your view in order to diagnose this further.

FranCarstens’s picture

I'm using the standard "Order Management" view that comes with VBO.

$view = new view;
$view->name = 'order_management';
$view->description = 'Order lmanagement';
$view->tag = 'order management';
$view->view_php = '';
$view->base_table = 'uc_orders';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'order_id' => array(
    'label' => 'Order id',
    'link_to_order' => 1,
    'exclude' => 0,
    'id' => 'order_id',
    'table' => 'uc_orders',
    'field' => 'order_id',
    'relationship' => 'none',
  ),
  'name' => array(
    'label' => 'Name',
    'link_to_user' => 1,
    'exclude' => 0,
    'id' => 'name',
    'table' => 'users',
    'field' => 'name',
    'relationship' => 'none',
  ),
  'primary_email' => array(
    'label' => 'Email',
    'exclude' => 0,
    'id' => 'primary_email',
    'table' => 'uc_orders',
    'field' => 'primary_email',
    'relationship' => 'none',
  ),
  'country_name' => array(
    'label' => 'Delivery country',
    'exclude' => 0,
    'id' => 'country_name',
    'table' => 'delivery_countries',
    'field' => 'country_name',
    'relationship' => 'none',
  ),
  'created' => array(
    'label' => 'Date',
    'date_format' => 'small',
    'custom_date_format' => '',
    'exclude' => 0,
    'id' => 'created',
    'table' => 'uc_orders',
    'field' => 'created',
    'relationship' => 'none',
  ),
  'order_total' => array(
    'label' => 'Total',
    'exclude' => 0,
    'id' => 'order_total',
    'table' => 'uc_orders',
    'field' => 'order_total',
    'relationship' => 'none',
  ),
  'order_status' => array(
    'label' => 'Status',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'exclude' => 0,
    'id' => 'order_status',
    'table' => 'uc_orders',
    'field' => 'order_status',
    'relationship' => 'none',
  ),
));
$handler->override_option('sorts', array(
  'order_id' => array(
    'order' => 'DESC',
    'id' => 'order_id',
    'table' => 'uc_orders',
    'field' => 'order_id',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('filters', array(
  'order_id' => array(
    'operator' => '=',
    'value' => array(
      'value' => '',
      'min' => '',
      'max' => '',
    ),
    'group' => '0',
    'exposed' => TRUE,
    'expose' => array(
      'use_operator' => 0,
      'operator' => 'order_id_op',
      'identifier' => 'order_id',
      'label' => 'Ubercart order id',
      'optional' => 1,
      'remember' => 0,
    ),
    'id' => 'order_id',
    'table' => 'uc_orders',
    'field' => 'order_id',
    'relationship' => 'none',
  ),
  'order_status' => array(
    'operator' => 'in',
    'value' => array(
      'canceled' => 'canceled',
      'in_checkout' => 'in_checkout',
      'pending' => 'pending',
      'processing' => 'processing',
      'payment_received' => 'payment_received',
      'completed' => 'completed',
    ),
    'group' => '0',
    'exposed' => TRUE,
    'expose' => array(
      'use_operator' => 0,
      'operator' => 'order_status_op',
      'identifier' => 'order_status',
      'label' => 'Order Status',
      'optional' => 1,
      'single' => 1,
      'remember' => 0,
      'reduce' => 1,
    ),
    'id' => 'order_status',
    'table' => 'uc_orders',
    'field' => 'order_status',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'role',
  'role' => array(
    '3' => 3,
  ),
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('title', 'Order management');
$handler->override_option('items_per_page', 50);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'bulk');
$handler->override_option('style_options', array(
  'grouping' => '',
  'override' => 1,
  'sticky' => 0,
  'order' => 'desc',
  'columns' => array(
    'order_id' => 'order_id',
    'name' => 'name',
    'primary_email' => 'primary_email',
    'country_name' => 'country_name',
    'created' => 'created',
    'order_total' => 'order_total',
    'order_status' => 'order_status',
  ),
  'info' => array(
    'order_id' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'name' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'primary_email' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'country_name' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'created' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'order_total' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'order_status' => array(
      'sortable' => 0,
      'separator' => '',
    ),
  ),
  'default' => '-1',
  'execution_type' => '1',
  'display_type' => '1',
  'hide_select_all' => 0,
  'skip_confirmation' => 0,
  'display_result' => 1,
  'merge_single_action' => 1,
  'selected_operations' => array(
    'uc_views_bulk_operations_orders_delete_orders' => 'uc_views_bulk_operations_orders_delete_orders',
    'uc_views_bulk_operations_orders_process_orders' => 'uc_views_bulk_operations_orders_process_orders',
    'uc_views_bulk_operations_orders_print_orders' => 'uc_views_bulk_operations_orders_print_orders',
    'system_message_action' => 0,
    'token_actions_message_action' => 0,
    'views_bulk_operations_action' => 0,
    'views_bulk_operations_script_action' => 0,
    'views_bulk_operations_argument_selector_action' => 0,
    'token_actions_goto_action' => 0,
    'system_goto_action' => 0,
    'system_send_email_action' => 0,
    'token_actions_send_email_action' => 0,
  ),
));
$handler = $view->new_display('page', 'Page', 'page_2');
$handler->override_option('path', 'admin/store/order_management');
$handler->override_option('menu', array(
  'type' => 'normal',
  'title' => 'Order management',
  'description' => '',
  'weight' => '0',
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
longwave’s picture

Status: Postponed (maintainer needs more info) » Fixed

Figured this out; the Actions Permissions module only provides permissions for node and user actions. A fix has been committed to CVS that adds new permissions for the order actions if the permissions module is also installed.

To fix this on your site, download uc_views from CVS (or wait for the 6.x-3.x-dev download to update), then add the permissions you need to your administrator role. They will be listed under uc_views_bulk_operations, not actions_permissions.

FranCarstens’s picture

Great, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.