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.
Hi,
Users that have permissions to add / edit nodes will see the subsites selection form element, regardless of whether they should be allowed to or not.
The included patch adds a permission check before showing the form elements.
Comment | File | Size | Author |
---|---|---|---|
#1 | subsites_form_alter_perm_0.patch | 1.82 KB | svendecabooter |
subsites_form_alter_perm.patch | 1.61 KB | svendecabooter |
Comments
Comment #1
svendecabooterPerhaps it would be better to add more fine-grained control to this, as there are probably use cases where users are allowed to assign content to a subsite, without giving them full "administer subsites" permissions.
Attached a new version of the patch...
Comment #2
davyvdb CreditAttribution: davyvdb commentedCommited, thx!