mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 03:59:39 +08:00

- Rename to queryIdsWhereHasPermission, since that's more accurate - Make the base query an optional 3rd argument. This feels more intuitive - Add a `can` function in AbstractPolicy, so extensions that add tag scopable permissions don't need to define their own policies (e.g. with approval) - Combine ScopeDiscussionVisibilityWithAbility and ScopeDiscussionVisibility - Fix ScopeDiscussionVisibility only requiring in one tag, not all. - Add lots and lots of tests Co-authored-by: SychO9 <sychocouldy@gmail.com>