Fix autosharing if more than one flag is set.
Created originally on Bitbucket by andreashuber (Andreas Huber)
Was already merged in Bitbucket before import, marked as merged by the import user
Source changeset not longer availableat the time of import. Commit listwill look empty
Autosharing didn't work if the delta had more than one flag set. This was because of a wrong evaluation of the flags.