Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Are there any Drupal permissions for this module for controlling who is able to configure the settings and languages?
Comment | File | Size | Author |
---|---|---|---|
#2 | gtranslate-permissions-2354299-9840045.patch | 1.94 KB | caspervoogt |
Comments
Comment #1
caspervoogt CreditAttribution: caspervoogt at Plethora commentedI ran into this too. I have an "Editor" role and don't want them editing these settings. So, I modified the module and added a permission, so GTranslate does not show in the menu and is inaccessible even when accessed directly from the URL.
I just added a function;
.. and in gtranslate_menu() I changed
'access arguments' => array('access administration pages'),
to:
'access arguments' => array('administer gtranslate'),
Patch following momentarily.
Comment #2
caspervoogt CreditAttribution: caspervoogt at Plethora commentedand here's the patch.
Comment #3
badrange CreditAttribution: badrange at Wunder commentedThanks for the patch! Worked nicely.
Comment #4
AlexAndrei04 CreditAttribution: AlexAndrei04 commentedWhere paste the patch?
Comment #5
biguzis CreditAttribution: biguzis at Wunder commentedSeams to be fixed in this https://www.drupal.org/project/gtranslate/issues/2699925
Comment #6
apaderno