I am using the latest OG 7.x-1.x dev version 22-June-2011 on drupal 7.2
On enabling og field access, the authenticated users can't access their profile fields. ( custom fields that I created e.g. Age, College, etc.)

On the other hand , admin can access it.

Comments

amitaibu’s picture

Status: Active » Postponed (maintainer needs more info)

Did you allow permissions for non-group/ gorup members?

nikkubhai’s picture

All the groups are open and anyone can subscribe. But, I am not getting how are profile fields of the user related to groups.
I mean even if some group is closed, a user won't see the group content. But, how is he denied from editing his own profile fields?

Joe Vallender’s picture

I've just come across this issue after thinking this behaviour was due to corrupt data in a massive D5->D7 migration I am doing in the next week. Thank goodness it isn't!

I'm not sure if this extra info helps....

When OG field access is enabled, users who are a member of at least one group do not have access to edit their custom user fields unless either
- the global OG permissions have the edit link checked for each field
- the same boxes are checked on any groups using custom permissions

It doesn't quite make sense but the fix is a quick enough one for now. I should also mention I may not be using the absolute newest OG release which may have set sensible defaults in global permissions etc...

mrfelton’s picture

Status: Postponed (maintainer needs more info) » Active

I spent a long time trying to work out why the profile fields were not visible for editing. The reason was because the OG Field Access permissions for those fields had not been set.

So, @Amitaibu - to confirm - setting the OG Field Access permissions for those fields does make them visible/editable.

However, it does seem strange that these field permissions are governed by OG, when the user profiles, or profile fields are not in OG context at all.

amitaibu’s picture

> setting the OG Field Access permissions for those fields does make them visible/editable.

If the profile entity is a group/group content (i.e. it's in an OG "context") then yes, og-field-access takes control over those fields.

mrfelton’s picture

My profile fields are attached directly to the User - would that be considered in an OG context? I never specified that the User entity should be a Group or Group content, but it does have a 'Groups audience' field attached to it - this field was added by OG automatically.

amitaibu’s picture

> My profile fields are attached directly to the User

If the fields are attached to a user, so yes, they are in OG context (as the user is a "group content").

mrfelton’s picture

Ok, thanks for the clarification. I consider this as solved then, but I'll leave it open since I don't know the details of the original poster's setup.

amitaibu’s picture

Category: bug » support
Status: Active » Fixed
bjaxelsen’s picture

Category: support » feature

I think this could be more easy if the "groups audience" did not have a double meaning
1) content audience
2) user's membership of one or more groups

How about keeping the term "groups audience" for no. 1 and use the term "group membership" for no. 2?

Status: Fixed » Closed (fixed)

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