Currently the If access policy relies on special filters:
policies = { edit: new Policies.If( "comments", "submitted", new Policies.Public(), new Roles(["admin"]) ), }; named_filters = { submitted: new SpecialFilters.Matches("stories", { submitted: true }), };
This task is about making it so the If policy can optionally take a regular filter value instead of just the named filter name:
policies = { edit: new Policies.If( "comments", { submitted: true }, // <------------- new Policies.Public(), new Roles(["admin"]) ), };
This needs to be tested thoroughly