https://github.com/sourcefabric/Superdesk/pull/40/files#r4336194