Skip to content

Configure trestle to only accept admin users? #37

@Bandes

Description

@Bandes

Hi - I am confused by how trestle-auth works, I have a User model in Devise which has an admin boolean on it. I would like to limit access to all of Trestle to only users with admin == true - it seems like that might be what trestle-auth is for, but I can't figure out how to get it set up.

Does it have something to do with this

  # Specify the parameter (along with a password) to be used to
  # authenticate an administrator. Defaults to :email if not specified below.
  #
  config.auth.authenticate_with = -> { Devise.authentication_keys.first }

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