Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
echoz CreditAttribution: echoz commentedok, 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.
Comment #2
echoz CreditAttribution: echoz commentedI made this suit my needs by simply editing this line:
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.
Comment #3
Harry Slaughter'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.
Comment #4
stephenls CreditAttribution: stephenls commentedThanks 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?
Comment #5
NancyDruCore 4.7?
Comment #6
druvision CreditAttribution: druvision commentedThis 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
Comment #7
davisbenI added additional access checks so that only users with the "assign node weight" permission will see the rendered select box.