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.
user_access(NULL, NULL, TRUE) is only called internally from user.module.
We should apply a consistent DX standard for resetting static variables. Having some functions with a $reset parameter and some others using drupal_static() doesn't make sense.
Comment | File | Size | Author |
---|---|---|---|
#4 | drupal.user-access-reset.4.patch | 7.02 KB | sun |
#2 | drupal.user-access-reset.2.patch | 6.84 KB | sun |
drupal.user-access-reset.patch | 4.34 KB | sun | |
Comments
Comment #2
sunoh wow - a pass-through $reset parameter! :)
And. A missing cache flush in user_role_save()! ;)
Comment #4
sunComment #5
catchLooks great!
Comment #6
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks!