Are there any Drupal permissions for this module for controlling who is able to configure the settings and languages?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

caspervoogt’s picture

I 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;

function gtranslate_permission() {
  return array(
    'administer gtranslate' => array(
      'title' => t('Administer Gtranslate'),
      'description' => t('Allow users to edit the GTranslate settings.'),
    ),
  );
}

.. and in gtranslate_menu() I changed

'access arguments' => array('access administration pages'),

to:

'access arguments' => array('administer gtranslate'),

Patch following momentarily.

caspervoogt’s picture

and here's the patch.

badrange’s picture

Status: Active » Reviewed & tested by the community

Thanks for the patch! Worked nicely.

AlexAndrei04’s picture

Where paste the patch?

biguzis’s picture

apaderno’s picture

Title: Permissions for editing GTranslate Configuration » Add the permission to change settings
Version: 7.x-1.10 » 7.x-1.x-dev
Category: Support request » Task
Status: Reviewed & tested by the community » Closed (duplicate)
Related issues: +#2699925: Access denied for gtranslate settings form