Closed (fixed)
Project:
Better Formats
Version:
6.x-1.1-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 May 2009 at 20:49 UTC
Updated:
16 Jun 2009 at 10:00 UTC
Maybe I found a new bug today. :-)
I have two new groups for permission besides 'anonymous user' and 'authenticated user'. When I install the module by default only these two groups comes enabled with the permissions: collapse format fieldset by default, collapsible format selection, etc...
I manually enabled the permissions to the other two groups but the Format selection dialog doesn't appear when submitting a node (with a user of one of those 2 groups), nor does the settings work.
I tried this on a production site, so I couldn't test it deeper, what is the source of the problem.
Comments
Comment #1
dragonwize commented1. Yes, when installing BF only anonymous user and authenticated user roles get permissions by default. This is by design. The reason that drupal core comes with those 2 roles and the reason you can not delete them, is that all users fall into one of those 2 roles, either they are logged in or they are not. Meaning that giving only those 2 roles the permissions enables them for everyone on the site which mimics drupal's core settings. Nothing will change if you give the other roles permissions, unless you remove the same permission from the authenticated user role first.
2. If a role only has access to 1 format then you will not see a selection box. This is how drupal core and BF handles this situation as there is no need to show a selection if there is only 1 possible format to use. By default when you create a role, it is not given any permission to use any format. So the only format a new role can use is the global site default format (filtered HTML by default). Untill you go to admin/settings/filters and give those roles permission to use more formats.
Comment #2
slampy commentedI have reproduced this bug on a fresh Drupal website.
Here is what I done:
1. Created a new group for permissions.
2. Set all the Better Formats permissions on this group.
3. Enabled this role to use Full HTML.
4. Created a user with this group permission only.
5. Logged in with this user.
When creating a story the Input selection dialog doesn't show up.
Comment #3
dragonwize commentedOk, this is probably caused by an omission I left out. I've corrected and pushed out an RC2 with other fixes. Please try 1.1-rc2 and see if that fixed it for you.
Comment #4
slampy commentedThe input selection box appears. :-)
But on my production site it still doesn't select the appropriate settings. I would like to see Full HTML selected.
On my test site it works. Currently I have no idea why it doesn't work on my production site.