Enable file upload for a role

3 posts / 0 new
Last post
Enable file upload for a role

Hello,
I am working on a website where i need to allow a role to add files to a node.
Till now i created the content type i need with all the informations and a file field with unlimited number of values.
I manage the access to the fields using the field permissions module, so that only the file field can be modified.
However, if i enable the role to edit the content, the role is not only able to upload a file, but also to change the title of the content and to remove the files already present.

How can i restrict the actions of this role to only upload files for this content type?

Cheers,
Matteo

 

File entity permissions

Hi Matteo,

I don't that this is possible because the user will either have access to the node to make changes or not and also I don't think that Field Permissions module works for File fields since they are treated as Entities.

Maybe the answer in this Forum will help you. You might have to download the custom module that has been provided there.

Come by our next ENTICE meeting (12/12 at 16:00 in R1) to have a look at it together.

Cheers,
Sotirios

Hi Sotirios,

Hi Sotirios,
thank you for your fast reply.

I'll come next week to the meeting.

Cheers,
Matteo

You are here