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.
When a user hits the node edit form and has no available domains options, lots of errors are displayed. This is caused by bad usage of drupal_access_denied() in domain_form_alter().
Comment | File | Size | Author |
---|---|---|---|
#1 | domain-nodeform-errors-2017023-1.patch | 551 bytes | peterpoe |
Comments
Comment #1
peterpoe CreditAttribution: peterpoe commentedHere be patches.
Comment #2
agentrickardPatch follows the core pattern here:
https://api.drupal.org/api/drupal/modules!contact!contact.pages.inc/func...
Comment #3
peterpoe CreditAttribution: peterpoe commentedLooks like it was fixed somewhere in time.
Comment #4
peterpoe CreditAttribution: peterpoe commentedPlease ignore previous comment. Bug is still present in dev.
Marking as Reviewed since fix is trivial.
Comment #5
agentrickardI cannot replicate this error.
Comment #6
peterpoe CreditAttribution: peterpoe commentedIf the user has the permission to "publish to any assigned domain" but has no assigned domain, the module will execute
return drupal_access_denied();
which means nothing and will break the page. Proposed patch solves the issue.Comment #8
agentrickardCommitted.
e7041a4..fcdd3d4 7.x-3.x -> 7.x-3.x