[SOLVED]How to give permission to a user to view/read?


#1

Hi, I have a dating app where one user needs to have permission to :

  • View another user’s photo.
  • Chat

If user1 requests for photo viewing permission, user2 can either permit or deny.

What is the best way to go about it?

alanning:roles
socialize package
nicolaslopezj:roles

Cheers


#2

okay, really easy 1 minute solution with socialize/friendships

https://atmospherejs.com/socialize/friendships

added the package, and just put the image between if .

`{{#if this.isFriendsWith currentUser }}

   <img src="/1.png" >

{{/if}}

thats just using a canon to kill a mosquito though !!! The package is elegantly made!! Cheers @copleykj
`