Og comments access allow you to manage comment access in Og group context.

It comes with 2 new og permission :

  1. Post comments
  2. Edit any comments

With these 2 permissions, you can now restrict comment posting on group.

You can also allow particular OG role to modify all group comments.

There 2 permissions overwrite the global Drupal permission in the group context

Project page

https://www.drupal.org/sandbox/ttournie/2348941

Git

git clone --branch 7.x-1.x http://git.drupal.org/sandbox/ttournie/2348941.git og_comments_access

Automated Review

http://pareview.sh/pareview/httpgitdrupalorgsandboxttournie2348941git

Comments

PA robot’s picture

Multiple Applications
It appears that there have been multiple project applications opened under your username:

Project 1: https://www.drupal.org/node/2349403

Project 2: https://www.drupal.org/node/2344695

As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).

If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.

I'm a robot and this is an automated message from Project Applications Scraper.

PA robot’s picture

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

ttournie’s picture

Status: Needs review » Closed (duplicate)
ttournie’s picture

Status: Closed (duplicate) » Needs review
PA robot’s picture

Multiple Applications
It appears that there have been multiple project applications opened under your username:

Project 1: https://www.drupal.org/node/2344695

Project 2: https://www.drupal.org/node/2349403

As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).

If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.

I'm a robot and this is an automated message from Project Applications Scraper.

ziomizar’s picture

Status: Needs review » Needs work

Hi ttournie,

Thanks for your module.

The project dont have a default branch see the documentation on setting a default branch.

I haven't tried your module but i have a question, In og_comments_access() line 47, you use

  global $user;

  // Allow to specify a user.
  if (!is_null($account)) {
    $user = $account;
  }

Why change the global $user variable? can't you change the $account variable? Something like this:

  global $user;

  // Allow to specify a user.
  if (is_null($account)) {
    $account = $user;
  }
PA robot’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).

I'm a robot and this is an automated message from Project Applications Scraper.

ttournie’s picture

Sorry for the delay and thanks ziomizar.

It was an silly mistake and I have fixed it now.

ttournie’s picture

Status: Closed (won't fix) » Needs review
evucan’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

delete please

evucan’s picture

Issue summary: View changes

Automated Review

Passed.

Manual Review

I can see that you have incorporated the comment of the previous reviewer. The rest of the code seems fine.

No duplication
Possibly look at working with the maintainer of this module where there seems to be some functionality overlap: http://drupalmodules.com/module/comment-og
Master Branch
Yes
README.txt/README.md
Yes
Code long/complex enough for review
Yes
Secure code
Yes

This review uses the Project Application Review Template.

evucan’s picture

Issue summary: View changes
ttournie’s picture

Thank you @evucan

apaderno’s picture

Assigned: ttournie » apaderno
Status: Reviewed & tested by the community » Fixed

Thank you for your contribution!

I am going to update your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.

Here are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!

Thank you, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

Thank you to the dedicated reviewer(s) as well.

ttournie’s picture

Thank you !

Status: Fixed » Closed (fixed)

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