Working nights as a security guard for a bank

He has been working for one of the banks for a period of ten years, and he [recently] learnt that working for banks is not permissible. He works nights as a [security] guard, and has no connection with the [trading] activities [of the bank], so can he continue working [there] or [should he] leave?