fix permissions on database items in some cases
fix permissions on database items in some cases

when a user from another team is in the current team, his items were
displayed
fix #2189

elabftw/elabftw,elabftw/elabftw,elabftw/elabftw,elabftw/elabftw,elabftw/elabftw