Check if user is admin before displaying error