researchstudio-sat / webofneeds

Finding people to cooperate with. Protocol, not platform. Decentralized. Linked Data. Open Source.
http://researchstudio-sat.github.io/webofneeds/
Apache License 2.0
63 stars 20 forks source link

NewsArticles are not shown to Organization Members (Socket ACL is missing) #3379

Closed quasarchimaere closed 3 years ago

quasarchimaere commented 3 years ago

Members of an Organization do not see any linked news articles, unless they are the owner of the organization. The socket-acl for these sockets are missing.

It is possible that other socket acls in our key usecases are missing as well, please check for missing acls and define/implement them.

The key UseCases are Persona, Project, Organization, Event

fkleedorfer commented 3 years ago

I think I'll solve this (and similar cases) in a more generic manner than we used to:

  1. the wx-schema:member's auth:localAuth grants an auth:SharedContextToken to connected atoms
  2. the wx-schema:AssociatedArticleSocket's auth:localAuth grants listing connections for bearers of that token, issued by the atom itself;
  3. the wx-schema:InverseAssociatedArticleSocket's auth:localAuth grants reading the atom to bearers of the token, issued by the target atom of an wx-schema:InverseAssociatedArticleSocket connection

This way, we can get the same behaviour for articles in similar situations in which a different socket (not the member socket) is used to define the shared context.