Currently anonymous users are able to post content. We should probably block it in commons_groups_og_user_access_alter().
anonymous_post.png

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

itamar’s picture

Status: Needs work » Needs review
FileSize
620 bytes

Patch revokes anonymous users content creation access.

ezra-g’s picture

Status: Needs review » Needs work

With this patch applied, anonymous users are still presented with the content creation short form. Initial debugging shows that this is true even though $access_create is correctly set to FALSE.

itamar’s picture

Status: Needs work » Needs review

I resolved the problem with the short form on #1969088: Changes to group browsing widget & user status updates.
The patch on #1 is still needed to fix the problem that the normal content forms are visible to anonymous users.

ezra-g’s picture

Status: Needs review » Needs work
FileSize
78.41 KB

With #1, anonymous users are still able to access the node/add form when specifying a group in the URL.

Screenshot_5_8_13_5_50_PM.png

itamar’s picture

I'm unable to reproduce this problem;
I tried the patch attached here on an fresh 3.x installation, and verified that the anonymous user is blocked from the post creation form, also with an og_group_ref in the URL.

ezra-g’s picture

Status: Needs work » Fixed

I re-tested and this is working as expected. Apologies for the hiccup above. Committed - Thanks!
http://drupalcode.org/project/commons_groups.git/commit/343541a

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