County security officers banned from carrying guns in courts