If this code resembles the bundle filter, that's no wonder ;)

Comments

chx’s picture

Status: Active » Needs review
jelle_s’s picture

StatusFileSize
new2.86 KB

New patch.

  • Fixed typo $default = (bool) $this->options['roles']; => $default = (bool) $this->options['default'];
  • Users are in- or excluded if they have one (instead of all) of the selected roles.
jelle_s’s picture

StatusFileSize
new2.85 KB

Sorry, ignore previous patch. It filters out the opposite of what the user selected. This is the right patch.

drunken monkey’s picture

StatusFileSize
new3.23 KB

Seems to work perfectly, thanks for suggesting this and providing a patch!
Attached is a re-roll to use the new $index->getEntityType() function and fixing the documentation style a bit.
Please test/review!

drunken monkey’s picture

Status: Needs review » Fixed

Committed. Thanks again!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.