Hi,
This module is working great for me in limiting certain roles in what they can and cannot edit on a particular content type. So far so good. The next stage of development is to limit the field being displayed according to the role author. Is this possible with this module? (I'm guessing this is a feature request)

An extra permission which would look like: "View field if role author = X"

For example, I have 2 roles - basic and premium. Premium roles subscribe and can add a picture to their blog post, basic cannot. A user subscribes to the premium role and can now add pictures to their blog posts. Then their subscription expires and they are back to the basic role, but their pictures are still visible. I am after a way to hide these pictures from common view if they unsubscribe, and to show again if they subscribe again.

I would think that at the field perm level would be the right place to do this?

There is an existing module for 5.x which does this called cck premium fields. Could this module be amalgamated into field permissions? Is there a better way?

All the best and thanks, Joe

Comments

robloach’s picture

Status: Active » Closed (won't fix)

Hrmmm, this could potentially really hurt performance. It's best to stick with Drupal ideologies and use the roles.

bassplaya’s picture

Kind of late reply but my guess is that this could be accomplished with Display Suite where you can add a field to a display mode for each field you have created in your content type or in profile fields under account settings. I haven't tested this but I will in the near future. I believe I should hide the normal fields by default and then add a DS field for each field and add php code that says if author has not 'role' then don't show or if author has 'role' then show. I'm thinking something in this respect. Any suggestions from people who've done this before are most welcome. Ta!