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.
hook_permission() defines "view any $box_type_name boxes"
But box_access() is checking "$op any {$box->type} box".
Comment | File | Size | Author |
---|---|---|---|
#1 | Permissions-checking_wrong-1996074-1.patch | 1.42 KB | mariacha1 |
permission.diff | 440 bytes | thehong | |
Comments
Comment #1
mariacha1 CreditAttribution: mariacha1 commentedLooks like the mismatched permissions names come up a few times. This patch takes care of a couple more user_access calls that are looking for "XX any YY box" instead of "XX any YY boxes"
Comment #2
PatchRanger CreditAttribution: PatchRanger commentedClosed #1814740: Only SuperAdmin can see block/box as a duplicate of this.
Comment #3
thehong CreditAttribution: thehong commentedPlease commit ;(
Comment #4
spiritfelix CreditAttribution: spiritfelix commentedsame problem, thanks for working!
It works well for me!