My requirement is if job per template has term reference, i want to grant access to the user if he has "equal to" or "one of" term references in his/her profile2-field collection field (Work experience)- term references, it is proving very difficult for me kindly guide/help

Comments

dasjo’s picture

this sounds similar to what taxonomy access control offers. does that help you?

kaizerking’s picture

no , in Taxonomy Access control administrator can give permission to users on what taxonomy terms he can view, there is no way to build realm based on any relations with profile2 or field collection items, what we need is dynamic relational access control with profile2, and field collection item reference fields.

I am sure this can be achieved with rules

Create nodes lists and user lists and compare both and use content taxonomy to grant permissions on match

I can create normal simple rules but very dumb in loops
Also considering number of jobs and users i think it will affect system resources as explained here, Grant to all users referenced by a term rights on all nodes referencing this term
There is a module Term access Which right for my requirement,but needs few lines of tweaking, I know what needs to be tweaked as usual I am dumb in coding
Term access checks user fields(core profile) and if there is match it will grant access. very simple and nice few lines code.
maintainers says

In theory this module could turn into a field entity access module, allowing for any field type to be checked between any 2 entities. However, to keep the development scope and maintenance of this module to a minimum, I will leave that project up to someone else!

I tried to teak it to suit my needs and able to get field collection fields in the list, since the filed collection field is a unique type of entity, I dont know how to get the thing work , also the module grants access only if 'tid' matches that means our recruiter role cannot access the node because recruiter doesn't have profile.
Hope some one will do some work on Term access, I have been posting in may places requesting help, so far no help from any quarters.
My website is waiting for this feature and there is no way i could do it, because i am good in coding

dasjo’s picture

of course, you can always apply permissions / roles dynamically using Rules.

kaizerking’s picture

I think you have commented while i was editing my post, please read @#2 again, I am dumb in creating complex rules using loops and other things

mh86’s picture

Status: Active » Fixed

For me it sound like you have to implement your own node access system, where you compare the terms of a node with the current user's resume. Even though that should be possible, I'm a bit sceptical whether this is very performant.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.