I've managed to make it possible for a user to post something that all users can read/write. { "*" : { "read" : true, "write" : true } }. But how can I make a post read/writable to user and only readable to everybody else.
I've found this, but I don't know how to replace the examples userId with the actually logged in user:
{ "5278cafce4b01085e4b7945a": { "read": true, "write": true },
"*" : { "read" : true } }
I'm thinking something like this (added javascript in acl of service added to page), but with this code I don't know how to make it readable to all users instead:
var acl = {};
acl[value]= { "read": true, "write": true };
return acl;
I already have a localStorage var of current users id, if that's for any help.
Also; I want to, in another page, list posts from this collection, but only those who were posted by the user. Solution?
Thanks. V