Jump to content

The MemberFilter core extension can actually be used in 4 areas instead of 2


teraßyte

Recommended Posts

I just found randomly that the MemberFilter extension can also be used for Automatic Moderation & Password Reset, but there is no mention of it anywhere in the documentation, it only states Bulk Mail & Group Promotions.

 

Even the extension generated by the ACP doesn't list all 4 values but only 2:

	/**
	 * Determine if the filter is available in a given area
	 *
	 * @param	string	$area	Area to check
	 * @return	bool
	 */
	public function availableIn( $area ): bool
	{
		return \in_array( $area, array( 'bulkmail', 'group_promotions' ) );
	}

 

It should list all 4 values:

return \in_array( $area, array( 'automatic_moderation', 'bulkmail', 'group_promotions', 'passwordreset' ) );

 

It all started when I found the automatic_moderation check by chance, I got curious and found also the passwordreset value after searching all files.

Both the extension example file in the package and the documentation should be updated to include all 4 values.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...