Modules involved : i18n, og, og_user_roles, og_content_type_admin
I defined a contributor role, who could create, update, and translate pages.
I created a group, and assign the contributor role to all its members using og_user_roles.
Logged in as a group member, I view a page node in the group, clicked on the 'Translation tab', then clicked on the 'create translation' link.
Drupal responds with 'Access Denied' error message.
If I give the contributor role as a normal role (using Drupal's built in role system), the user is allowed to create pages and translations everywhere (even outside the group), which is not what I wanted.The resulting translated page also not associated to any group by default, which is also not desired.
I created a patch to allow me create a translation, and also associates the resulting translation with the original group.
| Comment | File | Size | Author |
|---|---|---|---|
| og_user_role_i18n_translate_support.patch | 1021 bytes | ywidyatama |
Comments
Comment #1
somebodysysop commentedThanks for the code. It will be committed to next OGR release.
Comment #2
somebodysysop commentedCode now included in latest OGR release.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
chrisroditis commentedJust a notice here, I've been having the same problem, getting access denied errors when trying to translate nodes even though my user had the right permission to do so. I managed to get it working by checking "Clear the user_access() and cache_menu caches for user?" option after applying the necessary patch to the user.module. I guess it adds extra overhead but thats a necessary sacrifice. I hope it can be resolved in future versions of Drupal and og user roles!