Permissions

ad6 - June 6, 2009 - 14:22
Project:AJAX Comments
Version:6.x-1.7
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

It would be nice if ajax comments would have options in the drupal permissions area so that I could specify which roles can use ajax comments. So that if I want only administrtors to use ajax comments then I would check the administrator column.
This would be the best adition ;).

Compliments for your module, but I think this addition is a must.

#1

neochief - July 12, 2009 - 14:08
Status:active» fixed

Sorry, I don't see a strong reason to add permissions. If familiar with programming and very need this, you can implement it in your own helper module. You just need to set unset #ahah properties in comments buttons for non-admin roles in hook_form_alter().

#2

ad6 - July 20, 2009 - 10:49

I saw in this the only way to make it work with mollom, because on my site, mollom is disabled for registered. I wanted to activate ajax comments only for them, the registered.

#3

System Message - August 3, 2009 - 10:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#4

peashooter - August 8, 2009 - 08:18
Status:closed» active

ad6 did you have any luck with this? i'd like to disable it for anonymous users too - using recaptcha and buedit and it's not very happy with ajax comments.

So I'd just like to disable it.

Unfortunately I'm not a very proficient Drupal developer but will try and make helper module if you can tell me where to look? Didn't fully understand the hints in #1

Thanks for the great module and all your work

Cheers

#5

ad6 - August 8, 2009 - 14:19

@peashooter:
sorry i`m a drupal novice and have no drupal developer skills, yet.

#6

peashooter - August 9, 2009 - 08:52

Thanks ad6 anyway!

@neochief

ok so I unset the ajax submit easily enough with:

unset($form['submit']['#ahah']);
unset($form['preview']['#ahah']);

in the right part of my custom_form_alter function.

But the problem is not really the Ajax submit, the problem is the javascript sliding form etc seems to not be able to handle a reCaptcha form. That's why I'd like to disable it for anonymous viewers.

Is there a simple way to do this? Disable a whole module for a certain role? Haven't been able to find a guide on drupal.org

Thanks

#7

peashooter - August 9, 2009 - 08:58
Status:active» duplicate

Duplicate of http://drupal.org/node/375407

#8

neochief - August 9, 2009 - 10:11
Status:duplicate» active

It's not duplicate. I will fix this when I'll get free time, guys. Your help and patches are much appreciated.

 
 

Drupal is a registered trademark of Dries Buytaert.