Issue #3072171 by KelvinWong: Respect the Require all terms granted and Permission mode settings in Permission by entity module