Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It's a wonderful module but it does not work with the Permissions by Term widget... Is it possible to add compatibility?
Comments
Comment #1
stBorchertHow could SHS interact with this module? As far as I can tell, Permissions by Term is a module to control Node access ...
Comment #2
staslimon CreditAttribution: staslimon commentedI'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 ...
Comment #3
stBorchertI'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 usepermissions_by_term_allowed()
to remove unwanted terms there (but using the function would result in a lot of additional database queries ...).