minor edits

This commit is contained in:
MrYummy
2017-10-26 22:21:00 +02:00
parent bd85a2c3ae
commit 2223f88d7b
2 changed files with 6 additions and 3 deletions

View File

@@ -6,6 +6,8 @@ class UsersController < ApplicationController
before_filter :set_user, except: [:index, :new, :create, :lost_password, :reset_password, :suggestions]
caches_action :show, expires_in: 10.seconds, layout: false
def index
if params[:role]
if params[:role].downcase == "staff"