2009-01-06 11:49:19 +01:00
|
|
|
class AdminController < ApplicationController
|
|
|
|
before_filter :authenticate_admin
|
|
|
|
filter_parameter_logging :password, :password_confirmation # do not log passwort parameters
|
|
|
|
|
|
|
|
|
|
|
|
def index
|
|
|
|
@user = self.current_user
|
2009-01-14 12:46:01 +01:00
|
|
|
@groups = Group.find(:all, :limit => 10, :order => 'created_on DESC')
|
|
|
|
@users = User.find(:all, :limit => 10, :order => 'created_on DESC')
|
2009-01-06 11:49:19 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|