Title says it. There are 400 users using this great module. I'd like to suggest to port this module to D7.
Thank you.

CommentFileSizeAuthor
#11 D7_Port-1152576-11.patch14.31 KBc-logemann
#10 1152576.patch14.59 KBdarrick

Comments

andypost’s picture

lpalgarvio’s picture

looks so. will check out

cwithout’s picture

This module sounds like exactly what I need. "The Comment Permissions module enables control of commenting by user role and by node type." And in #489314: Comment without approval by role it mentions having added the ability to separate the permission to "skip comment approval" by node type.

The module mentioned in #1 doesn't control comment permissions by user role. Based on #962418: Why not generalize to all roles?, it's never going to. It only controls access for anonymous users. I don't see any information about whether it allows for skipping comment approval by node type.

Forum Access is another replacement I've seen suggested, but it doesn't include skip comment approval by node type, and it applies only to Forums. (I happen to want to use the functionality on Forums, but other people might want the comment permissions by role on other content types.)

This is not a duplicate module. It's one with more features. A Drupal 7 version would be a nice addition.

I'd like to know if there is a port to d7 in the works. If not, I may need to start it myself if I can't find something that accomplishes what I need.

cwithout’s picture

After further searching I found a strategy for handling skip comment approval by node type and user role using Rules #1049630: Require Comment approval per node type?. Seems like a sound method to accomplish that task.

This module would make that task easier to set up.

Though I only need the skip approval permission by role/type, and I don't need comment permissions by user role at the moment, I think it's still a valuable option this module provides. I haven't been able to find any other modules that provide it. (Though I'd be happy to hear if there is one or some other currently available method.)

ayesh’s picture

Rules is the rescue. But it can't do the exact same thing that this module does.
We could use Rules to publish comments based on user role and node type when global permission is set to allow nobody to post comments without approval, but Rules can't completely hide the form from a specific node type, for different roles.

Say there is a site with a forum and a project management node types.
We need to allow all authenticated users to post replies to forum threads but disallow posting replies to project node(only users with Manager role can).
To enable the comment form for authenticated for forum nodes, we have to allow 'post comments' and 'post comments without approval' permissions for authenticated users. But if we do that, authenticated users can comment on Project nodes as well. We can unpublished the comment using Rules but can't hide the comment form.

janis_lv’s picture

Enter to #3 :D
exactly what I'm looking for. I hope that this module will not conflict with Forum access.

pluess’s picture

After having a look at the code, I can port this to D7. I shouldn't take more than some days. Looks like porting modules to D7 is getting my favorite job (http://drupalcommercecamp.ch/de/sessions/drupal-modul-migration). :-).

However I have to make a living from my drupal work. Is there anybody ready to sponsor this?

benshell’s picture

Thank you pluess for following up with me regarding this project and volunteering to help. I've given you full access to the project, and you're welcome to take over project ownership if you'd like.

And thanks everyone for your comments regarding this module and interest in a D7 version! I'm glad so many people have found it useful! It's just hard to find the time to continue to maintain it since I no longer use it myself.

pluess’s picture

Priority: Normal » Major
darrick’s picture

StatusFileSize
new14.59 KB

I went ahead and updated the module today. I've attached a patch to the 6.x-1.x branch. Didn't get around to testing the "comment without approval" permission but everything else seems to be working okay.

c-logemann’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new14.31 KB

@darrick: Thank you very much for contributing this patch. It's working well.

I have just found a little problem in the patch. First the patch was not from the module folder:
drupal-7.9/sites/all/modules/comment_perm/comment_perm.admin.inc
and there was a comment in the line of dependecy in info-file which caused an error on installation.
Please do git diff in future.
I did a cleanup in info file and attached a new patch. If the patch is commited the authorship should be attributed to @darrick who has done the complete porting work.

@Module-Maintainers: Please open a new 7.x-branch and commit this patch so we can move on with testing and start developing some additional features.

@andypost: I think there is one big difference between this module and comment_allow_anonymous. This is the flexibility in role handling.
I need some more flexibility in viewing permissions of comments and want to contribute this by myself when the d7 branch is opened. If there is more help needed in maintenance I can provide this.

I think the work of Porting to D7 is done and the funding "D7 migration comment permission module" should be removed from the module page or changed at least.

benshell’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Reviewed & tested by the community » Fixed

Thanks darrick and C_Logemann! I haven't had a chance to test this, but I've applied the patch and pushed to a new 7.x branch. I've also removed all references to funding from the project page.

Status: Fixed » Closed (fixed)

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

cuteapoot’s picture

Status: Closed (fixed) » Needs review

I'd still like to see this in Drupal 7. I tried the dev version, but didn't see anywhere to change permissions. Anyone have updates for this?

DanZ’s picture

This is lovely, but not everyone knows how to get stuff out of the GIT repository.

Please tag and push a release so it can be downloaded from the project page.

alan d.’s picture

Just visit the releases page :)

http://drupal.org/node/316932/release

fox_01’s picture

Here is a duplicate candidate module user_tweaks

markusk’s picture

@bobojo/#14: You have to visit admin/config/system/comment_perm to tweak to switch on the permissions display at admin/people/permissions.

This is a great module, but I nearly missed it because the D7 version is hidden in the issue queue. As DanZ already posted:

Please tag and push a release so it can be downloaded from the project page.

alamp’s picture

Thanks for this nice module.

My two cents for beginners,
After enabling this module, please go to "www.example.com/admin/config/system/comment_perm" in order to configure the module.

berliner’s picture

Issue summary: View changes
Status: Needs review » Fixed

As far as I can see, there is a stable 1.0 for D7 since feb 26: https://drupal.org/node/2205997
So this seems to be done.

Status: Fixed » Closed (fixed)

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