Checks if a user has the given flag on the given entity by checking each role the user has.
The DB instance
If the user has the flag on the entity
Checks if a user has the given flag on the given entity by checking each role the user has.