I have a site where members (with different roles) can post projects.
My goal : To show to "recruiters" (role) a view of all the users who have flagged their nodes. In other words, the flag accessibility / visibility is dependant of the author's role and node type.
I need :
- to show a flag to every user if the author of the node has the role "recruiter"
- to let the "recruiter" unflag a user from his view of applicants.
I can't / I can:
I cannot figure out how to control the visibility / accessibility of the flag based on the author's role. I've checked a few modules, but did not find anything relevent yet.
I'm ok with Views: I guess I could make a second flag only for "recruiters" (available in the view) and set a double condition : if user has flagged node AND if "recruiter" has flagged the user in the list, then remove user from the view. By doing this, the user would not be able to flag again the node (job post) if the 'recruiter" has (un)flagged the user.
My hope : to be able to combine available modules (no coding).
I guess a custom module could look for a boolean field (checkbox) only available to some roles and show (or not) the flag. But I'm no coder unfortunately.
Let's start with available modules : is there anything that I missed?