You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 }
The text was updated successfully, but these errors were encountered:
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 withadmin == true
- it seems like that might be whattrestle-auth
is for, but I can't figure out how to get it set up.Does it have something to do with this
The text was updated successfully, but these errors were encountered: