It's a wonderful module but it does not work with the Permissions by Term widget... Is it possible to add compatibility?

Comments

stBorchert’s picture

Status: Active » Postponed (maintainer needs more info)

How could SHS interact with this module? As far as I can tell, Permissions by Term is a module to control Node access ...

staslimon’s picture

I'm not strong enough in programming, so that I can not read the module code, but whis this module, for example, you can deny access to the term, and it will no longer appear in the drop-down selection list of a term, but when I use shs widget that does not work ...

stBorchert’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

I've looked through the code of the module and it simply removes unwanted options from fields of type "taxonomy_term_reference". This way access to the term is not denied (which would be required to not be displayed by SHS) but simply make it un-selectable in the node.

Maybe using a custom module and implementing hook_shs_term_get_children_alter() would help. You could use permissions_by_term_allowed() to remove unwanted terms there (but using the function would result in a lot of additional database queries ...).