reactioncommerce / meteor-security

A Meteor package: Logical MongoDB security

Home Page:https://atmospherejs.com/ongoworks/security

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can Read?

drewmoore opened this issue · comments

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.

commented

something like Security.defineMethod("read", { <your logic here > });?

Ok, I'll give that a shot. Thank you.

👍 👍