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

Add support for securing specific ReadModel type #786

Open
einari opened this Issue Feb 27, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@einari
Member

einari commented Feb 27, 2017

Description

Today one can cross cuttingly secure in a namespace - we need a way to secure a specific read model, similar to how we do specific commands

public class QuerySecurity : BaseSecurityDescriptor
{
    public QuerySecurity()
    {
        When
            .Fetching()
                .ReadModel<Employee>(
                        s => s.User()
                                .MustBeInRole("ReadAccess"));
    }
}
``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment