I’ve successfully gotten acts_as_authenticated working. Currently the
before_filter line for my admin screen is like this:
class AdminController < ApplicationController
include AuthenticatedSystem
before_filter :login_required
Only issue I have now is that anyone logged in can access that screen.
I’d like to differentiate between a regular user and admin. I saw
something in the recipe’s book but it’s not quite what I’m looking for.
All I want is an extra check.
If I create a new boolean field in my user database (call it is_admin),
is there a way I can also have the before filter check to see if that
field is true? What would be the correct syntax for that?