The function _tac_lite_user_tids() needs a little cleanup. The for loop shouldn't exist, as the specific scheme is passed in as a parameter. Also, passing in $config is meaningless as it isn't used.

Patch to follow.

Comments

bdlangton created an issue. See original summary.

bdlangton’s picture

Status: Active » Needs review
StatusFileSize
new2.71 KB
bdlangton’s picture

StatusFileSize
new2.71 KB

The previous patch doesn't apply. Here's a reroll.

bohus ulrych’s picture

Thank you very much @bdlangton !
Your patch #3 still works with tac_lite 8.x-1.5 and Drupal 9.3.2

Without this patch is functionality broken. I have two Schemas - one for view and second for update. I've granted only scheme which controls grant_view. But I was able to edit the node which I supposed only to view!
After applying patch I can't edit such node.

grndlvl’s picture

Status: Needs review » Fixed

Added to 8.x-1.x

Status: Fixed » Closed (fixed)

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