deposit: fix for flag checking

Signed-off-by: Jake Cowton <jake.calum.cowton@cern.ch>