I'd like to check whether the currently logged in user has permission to edit a particular taxonomy term or vocabulary via php. Without this module, I'd just have to use:


if (user_access('administer taxonomy')){

  do_stuff();

}

How can I use TAC lite to determine whether the user has permissions to, for instance, Update Taxonomy term 24?

Thanks!

Comments

Dave Cohen’s picture

TAC Lite doesn't change who can administer taxonomy. It only change which nodes are visible, based on how the nodes are tagged.

So I don't think the code in your example needs to change at all.

damienmckenna’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Thank you for your contribution to this module. Support for Drupal 6 ended a decade ago, so I'm closing out this issue.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.