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

Feature: IsMemberAllowed #2

Open
AaronSadlerUK opened this issue Feb 22, 2021 · 2 comments
Open

Feature: IsMemberAllowed #2

AaronSadlerUK opened this issue Feb 22, 2021 · 2 comments

Comments

@AaronSadlerUK
Copy link

AaronSadlerUK commented Feb 22, 2021

I wonder if it's possible to add a IsMemberAllowed option, so that it returns results for pages a member can access.

@callumbwhyte
Copy link
Owner

Hey @AaronSadlerUK,

I'd need to check what values are actually in the index when content is protected.

I'm certain there's something like an __Protected field that could be checked, so an IsProtected() extension method for queries could be easily added.

Not sure if there's any further information in the index that would allow for more granular filtering, e.g. allowed member type aliases?

Callum

@AaronSadlerUK
Copy link
Author

I've currently achieved it this way:

Members.MemberHasAccess(result.Content.Path)

I couldn't find anything in the index relating to member groups

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

No branches or pull requests

2 participants