Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V8: Support allowed types for MNTP member picker #6524

Merged

Conversation

kjac
Copy link
Contributor

@kjac kjac commented Oct 1, 2019

Prerequisites

  • I have added steps to test this contribution in the description below

Description

As-is you can pick the allowed types when configuring MNTP as a member picker. However, the picker doesn't respect the allowed types filtering like it does when configured as a content picker. This was uncovered while working on #5983 (see also this comment on the PR fixing #5983)

This PR implements the filtering; when it's applied here's how the MNTP works in member picker mode:

mntp-member-allowed-types

Testing this PR

To test this PR, first create multiple different member types and members of said types.

Configure an MNTP as a member picker which allows only a subset of these types to be picked. Verify that the MNTP only lets you pick these member types, even when searching for members (note: disallowed types are apparently explicitly filtered out when searching - that's not caused by this PR).

Also verify that you can still pick any member type when there is no constraint on allowed member types.

@nul800sebastiaan
Copy link
Member

We'll have a look soon, thanks!

@nul800sebastiaan nul800sebastiaan merged commit f6d00a1 into umbraco:v8/dev Oct 14, 2019
@nul800sebastiaan
Copy link
Member

Wonderful update @kjac - thanks very much!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants