Can Read?
drewmoore opened this issue · comments
Andrew Moore commented
Hi, I'm not sure if this needs to be an issue or if I'm missing something. Is there any way to set the permission of Collection.permit('read')
and reference the permission in Security.can(userId).read(Collection)
? Thanks.
ASJ commented
something like Security.defineMethod("read", { <your logic here > });
?
Andrew Moore commented
Ok, I'll give that a shot. Thank you.
Eric Dobbertin commented
I added support for reads in 2.0: https://github.com/ongoworks/meteor-security#summary-of-changes-in-20
Andrew Moore commented
👍 👍