On table views containing a Weight field displayed as a form element, users with the "assign node weights" permission will correctly see a draggable table:

Table view with weight field, as seen by users with the "assign node weights" permission

However, users without the "assign node weights" permission still see the form submit button, as well as an empty column in the table:

Table view with weight field, as seen by users without the "assign node weights" permission

(The empty column remains visible even when "Hide empty column" is selected in the view's style options.)

I believe this issue is due to the "assign node weights" access control being applied only to the weight-selection form fields, rather than to the entire views field handler. I've attached a patch that does the latter, removing the unwanted submit button and table column for users without the "assign node weights" permission:

Table view with weight field, as seen by users without the "assign node weights" permission, with the patch applied

When testing, be sure to clear all caches after applying the patch.

Comments

davisben’s picture

Status: Needs review » Fixed

Committed, thanks for the patch!

Status: Fixed » Closed (fixed)

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