Skip to content

Multi-role check #234

@kapso

Description

@kapso

Is it possible to do a multi-role check - user.has_role?(:admin, :moderator) ?? ...which hopefully does one query to the DB vs doing user.has_role?(:admin) && user.has_role?(:moderator) which obviously involves going to DB twice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions