Will closed bar doors affect crime? Will it violate fire code?

Will closed bar doors affect crime? Will it violate fire code?