Hi,
I detected a problem in this module when is used together with calendar. When you create a calendar view using a field collection, the calendar show all the field created without respect the permission to see it.

I need to show the fields of a node in a calendar view but the calendar shows all the fields to any role whether they do not have access to this content. I´m not sure where is the error. Maybe field collection, maybe field collection views, calendar, content access....

Please, any help?

Thanks a lot!

Comments

albert volkman’s picture

@skat please have a look at #1954124: Fields part of field collection are ownerless and report if that resolves your issue.

skat’s picture

Albert Volkman, I tried the patch suggested, but it fails. Any idea?

albert volkman’s picture

@skat It fails to apply, or it isn't functional?

david.lopez’s picture

The patch applies perfectly to the git head version, but, it seems that the view is still accesible by anyone.

To be more specific, this is the error: Notice: Trying to get property of non-object in FieldCollectionItemEntity->__construct() (line 210 of /Applications/MAMP/htdocs/new/sites/all/modules/field_collection/field_collection.module).

And, even reverting the patch and hardcoding a specific uid, so different for 2 users, it still doesn't apply any permissions at all.

jmuzz’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

Are you using field permissions to try to implement the access control you want? The ticket already posted has some information about that, but as you can see here ( #1838976: field permissions do not work with field collection ) Field Collections do not work with the Field Permissions module at the moment.

Does this explain the problem? Maybe this can be closed as a duplicate.

jmuzz’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)