Skip to content

Commit

Permalink
Fix SEA certificate verification, allow multiple pubs (#1358)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimiza committed Feb 5, 2024
1 parent 7eb6d38 commit 61df63c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sea.js
Expand Up @@ -1389,7 +1389,7 @@
if (u !== data && u !== data.e && msg.put['>'] && msg.put['>'] > parseFloat(data.e)) return no("Certificate expired.") // certificate expired
// "data.c" = a list of certificants/certified users
// "data.w" = lex WRITE permission, in the future, there will be "data.r" which means lex READ permission
if (u !== data && data.c && data.w && (data.c === certificant || data.c.indexOf('*' || certificant) > -1)) {
if (u !== data && data.c && data.w && (data.c === certificant || data.c.indexOf('*') > -1 || data.c.indexOf(certificant) > -1)) {
// ok, now "certificant" is in the "certificants" list, but is "path" allowed? Check path
let path = soul.indexOf('/') > -1 ? soul.replace(soul.substring(0, soul.indexOf('/') + 1), '') : ''
String.match = String.match || Gun.text.match
Expand Down

0 comments on commit 61df63c

Please sign in to comment.