Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Tag Counts based on access level
brilang
New
I have implemented different access levels and have some people testing Vanilla with me, posting in different Categories that are locked down to different Roles.
When a user with very few permissions logs in, they see ALL the tags that have been used (anywhere in the community) and a count of how many posts have used that tag. If they click on the tag, they get no discussions found if all the uses of that tag were in areas they don't have access to.
Is there a way to hide the tags (and counts) from users who may not have access to them? Perhaps a Role or Permission setting I've overlooked?
Thanks in advance.
0
Comments
Surely someone has had this problem and found a solution...
You could hide the tag module based on permissions. In the
/plugins/Tagging/class.tagging.plugin.php
file you can add the appropriate permission check here:https://github.com/vanilla/vanilla/blob/d4c9bccedaa609f30c4df68bec44c6151e401feb/plugins/Tagging/class.tagging.plugin.php#L894-L897
Or you could hook into the
base_render_before
hook and remove the module if they don't have the permissions.I don't know how granular your permissions are you created, so you might have to modify if necessary.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.