Editing a node gives the warning:

Warning: Missing argument 2 for filefield_edit_access()  in filefield_edit_access() (line 486 of /Users/nate/Sites/drupal6/sites/all/modules/filefield/filefield.module).

This is caused by a recent change in FileField to correctly check access permissions. See #696906: filefield_edit_access() and filefield_view_access() should use content_access() instead of checking content_permissions specific.

The parameters for filefield_edit_access() have changed to actually allow it to check the permissions correctly if a field is shared between multiple content types. This patch should correct the problem.

CommentFileSizeAuthor
filefield_sources_access.patch680 bytesquicksketch

Comments

quicksketch’s picture

Status: Needs review » Fixed

Committed. Be sure to use the 1.1 version of FileField Sources with FileField 3.4 and higher.

j0nathan’s picture

Hi quicksketch,

You say:

Be sure to use the 1.1 version of FileField Sources

On the project page I don't see version 1.1, I see:
6.x-1.0 2010-Mar-02
6.x-1.x-dev 2010-Jun-17

Which version should I use?
Do you plan to release 1.1 soon?

sinasalek’s picture

I don't see any 1.1 as well

quicksketch’s picture

Sorry the 1.1 version is currently pending. I updated the project page before I actually made a release. It should be out in the next few hours.

quicksketch’s picture

1.1 release it now out.

sinasalek’s picture

Thanks

Status: Fixed » Closed (fixed)

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