Skip to content

Заблокированный пользователь проходит RBAC (hasRole игнорирует enabled) #93

Closed

Description

@vladcheck

Что

User с enabled=false и ролью ADMIN/MODER проходит hasRole: кнопки привилегий видны, обработчики пускают. Продуктовое решение: должен ли клиент разлогинивать/скрывать интерфейс для заблокированных.

Найдено мозгоштурмом RBAC.

Part of #29

Activity

  1. vladcheck commented on Oct 16, 2026

    @vladcheck
    OwnerAuthor

    Схлопнут в #94: по глоссарию заблокированный не может аутентифицироваться, так что disabled-сессия возникает только mid-session — это stale-кейс #94 (перепроверка спрячет UI и у отключённого). Серверная половина (инвалидация токенов при блокировке) относится к #97.

  2. self-assigned this
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

needs-triageMaintainer needs to evaluate this issue

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions