When I add in the Privatemsg views UI to my site, I lose the ability for authenticated users to delete a thread, or mark it as read on the ?q=messages/ path. The dropdown merely shows "Choose an operation", but does not have any options. It works for the site administrator, but no one else.

I am currently using Views 6.x-2.12, VBO 6.x-1.12, PrivateMsg 6.x.1.5, PrivateMsg views 6.x-1.x dev. The problem also occurs wit PrivateMsg Views 6.x-1.0, and earlier versions of the other components.

This looks like a permissions issue, but I cannot find where to change the permissions.

Comments

Pgreenhough’s picture

Title: Operations options only show for site adminstrator on Maibox view » Operations options only show for site adminstrator on Mailbox view
Pgreenhough’s picture

I managed to find a work around. I added the following code to the front of the privatemsg_views.module. This allowed me to find these items in the permissions list and then set the permissions for my users.

/**
 * Implements hook_perm().
 */
function privatemsg_views_perm() {
  return array(
      'execute Mark as read (_privatemsg_views_thread_operation)',
      'execute Delete (_privatemsg_views_thread_operation)',
      'execute Undelete (_privatemsg_views_thread_operation)',
      'execute Mark as unread (_privatemsg_views_thread_operation)',
  );
}