How would I go about modifying this module so that I could assign (access control) permissions to another user to access the ldap administration pages?
I have tried to include permissions in 'function ldap_integration_settings()', following on the documentation in the drupal handbook: http://drupal.org/node/22797, but to no avail.
Comments
Comment #1
pablobm commentedYou can do that giving users access to "administer site configuration".
If you wish a finer-grain configuration, you probably need to give those users access to "access administration pages" and then play with hook_perm() as well as the mentioned hook_settings(). (I think).
Comment #2
rout commentedThanks Pablo,
I did want finer permission to access this module, in fact only to access this module and none of the others.
I've added the perm() function at the start of the module:
And I've tried to add the settings() function:
But I'm not sure where to plug this, as there is already a settings() function called in the module:
Anyway, I had hoped there might have been an easy way to do this, but I'm not so sure...
Comment #3
rout commentedStill having trouble with this...does anyone have any idea where I would place the following code (as per http://drupal.org/node/22797):
It appears to be returning an error because this function is already called:
But I'm not sure where I'm going wrong...
Comment #4
rout commentedI suppose this should be filed as a feature request...
Comment #5
pablobm commentedComment #6
johnbarclay commented