Checks if a user has the given flag on the given entity by checking the entity's ACL.
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 the entity's ACL.