I have installed the role_export.module to make my user roles exportable (gives machine_name field and hashes it to create the role id). And I noticed that everytime I run cache clear or cron the role id of the Forum Moderator role will get overwritten by role_export module. This causes forum_access to create another role "Forum Moderator 2" and next time cron runs, it will create "Forum Moderator 3" and so on.

Basically what was happening was, role_export module runs role_export_normalize() function which basically modifies the role id's of roles that don't match with their md5($role_machine_name). Below is a patch that will fix the issue if anyone needs.

Comments

Status: Needs review » Needs work

The last submitted patch, forum_access_role_export_integration.patch, failed testing.

baysaa’s picture

StatusFileSize
new1.03 KB

Sorry, new patch without windows carriage returns

baysaa’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, forum_access_role_export_integration.patch, failed testing.

salvis’s picture

Title: Forum Moderator role id gets overwritten every cache clear with Role Export module » Role Export module overwrites Forum Moderator role id with every cache clear
Status: Needs work » Closed (works as designed)

This is a Role Export issue, and FA works correctly, even if Role Export deletes FA's Forum Moderator role.

salvis’s picture

(Not sure if Role Export renumbers rids or not, but if it does, then http://www.drupal4hu.com/node/334 may have some related information.)