4e594d3a7d
- Change IsAuthorized() to use deny-by-default when RBAC is enabled - If ANY authorization rules are configured, only notifiers with explicit allowed_roles are accessible - Notifiers without rules are denied access when RBAC is active - If NO rules are configured, maintain open access for backward compatibility - Add HasRules() helper method to check if RBAC is enabled This fixes the issue where notifiers WITHOUT allowed_roles were being returned instead of the notifiers WITH matching allowed_roles. Now when RBAC is configured: - Only notifiers with explicit rules that match the user's roles are returned - All other notifiers are hidden from the client Example: If only email has allowed_roles=['admin'] and user has role 'admin': - OLD: email ✓, stdout ✓ (WRONG - stdout should be hidden) - NEW: email ✓, stdout ✗ (CORRECT - only email is returned) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>