Using Image FUpload and User Relationships Node Access, I had the following problem:

When you use Image FUpload CCK on a Imagefield, during the 'Next Step' process, the user relationship setting is wiped out from the 'update' case in user_relationships_node_access_nodeapi. Even though URNA is enabled for the node type with the CCK widget, the second step after uploading Image FUpload is a different form array, no node access options are presented, and the previous ones are removed (from first part of upload step).

This is an issue, because without setting that access level, it grants it to anyone to view the content submitted.

I got around this for now by commenting out 'case: update' - relying on the insert case to set my permissions. I tried different methods of correcting this behavior, even with my own nodeapi function trying to adjust the values- but they kept being wiped out.

Is there any way to fix this behavior when using Image FUpload?

Comments

kevinquillen’s picture

I'll note that I can remove the update case because I am programatically enforcing 'view' access on user content and abstracting this functionality from the user. You may not want the same behavior.

mrf’s picture

Category: support » bug
mrf’s picture

Component: Code » Node Access