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.
Currently we check if (variable_get('less_devel', FALSE) && user_access('access administration pages')) {
but I don't think the user_access() is needed here. Is this for a reason?
Comment | File | Size | Author |
---|---|---|---|
#2 | debug-mode.patch | 671 bytes | amitaibu |
Comments
Comment #1
corey.aufang CreditAttribution: corey.aufang commentedI felt that the nature of the message was such that only administrators should see it.
I wouldn't want the message to show if I accidentally had developer mode enabled on a live website.
Comment #2
amitaibuOh, no, I mean about
file_unmanaged_delete_recursive($less_path);
not being executed for non-privileged users. The message of course should be permission based.Patch attached.
Comment #3
corey.aufang CreditAttribution: corey.aufang commentedIndeed you are right.
I had made the change in the D6 version but forgot to make it here.
Comment #4
amitaibuThanks -- next time please don't forget to credit in the commit log ;)