Thanks for this module, it was precisely what I needed.

Users without "assign node weight" see the weight select in creating/editing a node.

This is cck content, if that makes a difference.

weight.module,v 1.16
drupal 4.7.4

Comments

ok, sorry, just read that this is intended.
I'm working on giving a class to it so I can have control over this, it falls outside of the div of class .admin, which classes "authored" + "options" are contained.

I made this suit my needs by simply editing this line:

if (user_access('assign node weight') || user_access('administer nodes'))

removing the second part, or changing the logical "or" to "and".

I don't know if this would make sense as an option - if it would be a likely configuration to have users administer nodes, but not do some admin tasks. I only give this permission so they can delete each others nodes (an organization with a few editors).

This can be closed if others don't see this as an option they'd use.

Status:Active» Closed (works as designed)

'administer nodes' is meant to allow users access to ALL node properties that are configurable.

It's generally a better idea to use hook_form_alter() to alter forms rather than hacking core or contrib code.

Thanks for this module, but I'm not sure how this 'works as designed', unless the intention from the beginning was to allow non-administrative users to change node weights. I have a views generated page of nodes displayed using the 'Weight Changer' style. Even though only administrative users are granted the permission provided by the Weight module, anyone who views the page is provided the move handles, the show/hide wieghts link, and the 'save' button.

Is there something I'm missing?

Core 4.7?

Version:4.7.x-1.1» 7.x-2.0
Priority:Normal» Major
Status:Closed (works as designed)» Active

This is a serious bug, not treated yet!! In drupal 7, version 2.0, this still happens!

I want my administrative users to have a WYSIWYG way to change the weight of the nodes on a view.
This means that they work on a view which is also visible by anonymous users - but the weight field should be automaticlaly hidden by the view.

How come that in my setup, anonymous users still see the weight change control????

Field permissions can't help, since weight is not a normal cck field...

Amnon

Status:Active» Fixed

I added additional access checks so that only users with the "assign node weight" permission will see the rendered select box.

Status:Fixed» Closed (fixed)

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