Hi,
I need to get a list of all taxonomy access-terms a user is assigned to. Best would be, if I could filter by grant_update = 1.
I want to combine this with IMCE to create image folders, a user should have access to.

Can I use one of the existing functions? I think I need a php function where I can combine the following tables:

users_roles (with rid for role and UID of the current user)
taxonomy_term_data (with tid to get the term name)
taxonomy_access_default (with tid and rid to get default value for grant_update)
taxonomy_access_term (with tid and rid to get the NON default values for grant_update)

How can I perform this as a function?