I tried to create a project (Project module) and I got a warning:

warning: Invalid argument supplied for foreach() in /var/www/og/sites/all/modules/og_user_roles/og_user_roles.module on line 1967.
You do not have permission to post this content type (project_project) into Group: MYPROJECT (4)

I was using the admin account and the project wasn't created. I assumed it would be because I'm the admin.

My Group node is a custom content type called Group.

Comments

somebodysysop’s picture

Status: Active » Needs work

I don't use the project module at all, but this sounds suspiciously similar to this issue: http://drupal.org/node/269697

As per: http://drupal.org/node/267117#comment-879548, it would appear that the project_project.module needs to provide a specific permission in the traditional fashion so that ogur can determine whether users have access to post or not. I'm not saying that this is some sort of problem with the project.module. I'm saying that ogur needs to be clear on who can and cannot post content into specific groups, and the mechanism it uses is the default drupal hook_perm scheme.

Sounds like the solution to this is something like this:

function project_project_perm() {
  return project_perm(); // Or whatever the current default hook_perm is for project
}
sun’s picture

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

With the rise of the rewritten OGUR 4.x for Drupal 6, in which many unrelated features of OGUR were removed, and nearing a release of Drupal 7, I'm closing down old issues.

somebodysysop’s picture

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

The person who changed the status of these issues to "won't fix" was not authorized to do so: http://drupal.org/node/352139#comment-2352234

OGUR 6.x-1.x will continue to be maintained by me.