Behold user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access content', 'use text format 1'));
- This should be
'use text format ' . plain_text_format->formatbecause who told you that the auto increment is set to 1? - This should not exist because filter module (specifically filter_permission_name) does not even expose a permission for the fallback filter format which minimal install already set to... guess what?
variable_set('filter_fallback_format', $plain_text_format->format);
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | broken_and_should_not_exist.patch | 741 bytes | chx |
| broken_and_should_not_exist.patch | 658 bytes | chx |
Comments
Comment #1
agentrickardSeems reasonable and sane. RTBC if bot likes.
Comment #2
chx commentedBot is off. And comment module is disabled, too.
Comment #3
dries commentedCommitted to CVS HEAD.