Current Behavior
New users get a button "Start a discussion" on "All Discussions" even when they don't have permissions to post in any tag.
Steps to Reproduce
Set your permissions so members can read posts but only certain roles can create posts.
Go to All Discussions and you'll have the button to click "Start a Discussion" even when you don't have the permission to do so.
You'll get the popup to create a forum discussion but you'll be unable to select a tag.
Clicking on the "Choose Tags" button does nothing and I also get a lot of errors in the console.
Expected Behavior
When you click a tag it'll tell you that you can't start a discussion.
The same behavior should apply to "All Discussions" when you don't have permissions in any of the tags to post anything and a minimum of 1 tag is required.
Bug Report
Current Behavior New users get a button "Start a discussion" on "All Discussions" even when they don't have permissions to post in any tag.
Steps to Reproduce Set your permissions so members can read posts but only certain roles can create posts.
Go to All Discussions and you'll have the button to click "Start a Discussion" even when you don't have the permission to do so.
You'll get the popup to create a forum discussion but you'll be unable to select a tag.
Clicking on the "Choose Tags" button does nothing and I also get a lot of errors in the console.
Expected Behavior When you click a tag it'll tell you that you can't start a discussion.
The same behavior should apply to "All Discussions" when you don't have permissions in any of the tags to post anything and a minimum of 1 tag is required.
Environment
Additional Context The website uses a custom login method based off https://discuss.flarum.org/d/2808-how-i-implemented-cross-authentication-with-flarum so you won't be able to login or view the forum without an account on a different website.