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.
I was trying to use this module to show message to users according to the login_count. Then i saw that user_stats_get_stats allways check for permission. The problem is that i dont want the user to actually see the login_count, but i want my code to be able to use the function.
So I propose to add an optional parameter to skip permission checking.
Comment | File | Size | Author |
---|---|---|---|
#1 | skip-access.patch | 1.15 KB | discrete_drusher |
skip-access.patch | 1.15 KB | discrete_drusher |
Comments
Comment #1
discrete_drusher CreditAttribution: discrete_drusher commentedThere was a minor syntax error.