Skip to content

Commit

Permalink
allow registery owner to change project status
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Rb3 committed May 9, 2024
1 parent 5d76fc4 commit c94c330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SDK/lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const ListsSDK = {
return ListsSDK.getList(potlockRegistryListId);
},
isRegistryAdmin: (accountId) => {
const registry = ListsSDK.getPotlockRegistry();
return registry.admins && registry.admins.includes(accountId);
const { admins, owner } = ListsSDK.getPotlockRegistry();
return (admins && admins.includes(accountId)) || owner === accountId;
},
getRegistrations: (listId) => {
return Near.view(_listContractId, "get_registrations_for_list", {
Expand Down

0 comments on commit c94c330

Please sign in to comment.