gun icon indicating copy to clipboard operation
gun copied to clipboard

Gun ignores '/' at the end of soul policy

Open ViteOrder opened this issue 3 years ago • 0 comments

Heres a senario:

{
  "mention": {
     // I want users to be able to write
    "posts": {
       // here
    },
    "comments": {
      // and here
    },
    // but not here, in the mention soul itself
  } 
}

I should be able to solve this using one certificate; one that requires the soul to start with mention/. This should work because ~pub/mention and ~pub/mention/ are two different nodes But, as shown by this jsbin, it does not. The policy {"*":"mention/"} allows people to write to ~pub/mention

In the usecase I showed this can easily be worked around by using two certificates, but I think I think this should be fixed regardless

ViteOrder avatar Nov 17 '22 04:11 ViteOrder