Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Allow users with certain active subscriptions to view certain profile's private fields.
Relates to: #1540382: Override entity access
Comments
Comment #1
alexweber CreditAttribution: alexweber commentedImplemented and pushed in dev branch.
Comment #2
alexweber CreditAttribution: alexweber commentedavailable in beta4
Comment #3
kaizerking CreditAttribution: kaizerking commentedit is as good as creating a new role and assign permissions using rules.
If a user has subscription then he can view all the content whether required or not
What is needed is per user permissions/per profile,
A rules hook to configure to grant permission based on conditions, to view a certain profile only with particular subscription type.
The grant should apply to profile2 profile(resume) itself rather than the private fields.
if subscription = active then "grant permission" to view = view mode, the view mode module could be handy for this purpose,
would you consider this ?
Comment #4
alexweber CreditAttribution: alexweber commentedHi @kaizerking, this sounds like a feature request to me! Please open a separate issue for it and I'll take a look!
- Alex