Not to say this is the way it should be done, but Posts::get() supports: * - has:info => a post info key or array of post info keys, which should be present * - all:info => a post info key and value pair or array of post info key and value pairs, which should all be present and match * - not:all:info => a post info key and value pair or array of post info key and value pairs, to exclude if all are present and match * - any:info => a post info key and value pair or array of post info key and value pairs, any of which can match * - not:any:info => a post info key and value pair or array of post info key and value pairs, to exclude if any are present and match
On Sat, May 11, 2013 at 1:44 PM, Konzertheld <[email protected]>wrote: > Hello developers, > > simple idea, no clue how to do it. I want to hide posts from everyone > except if it is accessed via a secret key (the google way of sharing photo > albums). So basically I want to check a checkbox on the publish page which > will cause that post to be hidden from everywhere, only accessible via > direct call with that secret (which is easily done with rewrite rules). > > I can't use private posts for that because I can't allow access to private > posts anywhere. So if I use it to deny access, access will always be denied. > > I also can't use postinfo to store if that post is protected because there > is no "not:info" for Posts::get(), so I can't filter Posts::get() results. > > What should I use? Maybe it's possible to temporarily grant the anonymous > user permission to that specific post? Someone somewhen said something > about post-specific ACL. I've thought about fake-identifying as some user > when a secret is used, but that will not work as long as I do not create > one user per protected post (I won't do that). > > So, if someone has an idea or knowledge about functionality, please let me > know. :) > > Konzertheld > > -- > -- > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/habari-dev > --- > You received this message because you are subscribed to the Google Groups > "habari-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/habari-dev --- You received this message because you are subscribed to the Google Groups "habari-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
