I have my roles exported to my feature and additionally have this filters exported to this same feature. It seems that the roles do not get correctly added to the input formats.

I saw that this #828034: Roles are not correctly assigned got committed but it seems my exported feature still has issues. Only the first role is added to my input formats.

This is when taking my feature and enabling it on a brand new site.

Comments

dagmar’s picture

Status: Active » Postponed (maintainer needs more info)

Please, export your input format. Remember that input formats does not create new roles, just grant access to existent roles.

Also, I'm not sure which is the order of creation in a feature that provides both, roles and input formats, maybe roles are created after the input format is imported.

nicholas.alipaz’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Actually I was able to get the roles to show up by reverting each input format, I checked this after posting. However, it seems that there are other issues potentially unrelated to this module. Better formats doesn't pick up the roles that are added via features module (#1088502: Roles not showing on admin/settings/filters/defaults whenever providing roles via features module). Other than that it looks as though this works as designed.

From what I can tell input formats do get added before the roles are created, which causes the aforementioned issue. One has to revert all input formats after enabling the feature in order to assign roles properly. Alternatively, one could make two features I assume and make one dependent upon the other to get around this issue, although I have not tested this part.