You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at this closer, I think it's actually more to do with a mistaken interpretation of * (i.e. what we're trying to clarify with #815), and not a bug in requrireAccess.
In the above example, user hub is being granted access to the channel named *, not to all channels (i.e. * is a named channel, not a wild card). The * channel contains all documents, but this is different than the user being granted access to all channels.
The above use case is actually an example where this distinction is important - the user might have been granted access to read all documents (via the * channel), but not given the ability to update all documents.
@mjq - in this scenario I think that requireAccess is working as intended - if you want to allow users with * channel access to make updates, you could change your requireAccess call to `requireAccess("some_channel", "*").
version: master(10b35bb)
Users block in config.json:
Sync function:
I would expect attempts to write documents by the user "hub" to succeed, since "*" grants access to all channels. But, attempts to write fail:
It looks like
requireAccess
doesn't consider the*
channel.The text was updated successfully, but these errors were encountered: