Merge pull request #5737 from urbit/po/fix-for-iswriters-func-in-groups

Po/fix for iswriters func in groups
This commit is contained in:
Patrick O'Sullivan 2022-04-28 10:11:07 -05:00 committed by GitHub
commit 243ca58f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@
"@tlon/indigo-light": "^1.0.7",
"@tlon/indigo-react": "^1.2.27",
"@tlon/sigil-js": "^1.4.3",
"@urbit/api": "^2.1.0",
"@urbit/api": "^2.1.1",
"@urbit/http-api": "^2.1.0",
"any-ascii": "^0.1.7",
"aws-sdk": "^2.830.0",

View File

@ -198,7 +198,7 @@ export const isWriter = (group: Group, resource: string, ship: string) => {
if (typeof writers === 'undefined') {
return true;
} else {
return writers.includes(ship) || admins.includes(ship);
return [...writers].includes(ship) || admins.includes(ship);
}
};

View File

@ -1,6 +1,6 @@
{
"name": "@urbit/api",
"version": "2.1.0",
"version": "2.1.1",
"description": "A library that provides bindings and types for Urbit's various userspace desks",
"repository": {
"type": "git",