Skip to content

Commit

Permalink
Drop deprecated canUserEditOrganization; use `isUserTheOrganization…
Browse files Browse the repository at this point in the history
…Owner` instead (#138)
  • Loading branch information
fregante committed Jul 24, 2022
1 parent bc8b8aa commit b456414
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,6 @@ addTests('isRepositoryActions', [
]);

export const isUserTheOrganizationOwner = (): boolean => isOrganizationProfile() && exists('[aria-label="Organization"] [data-tab-item="org-header-settings-tab"]');
/** @deprecated use isUserTheOrganizationOwner instead */
export const canUserEditOrganization = isUserTheOrganizationOwner;

export const canUserEditRepo = (): boolean => isRepo() && exists('.reponav-item[href$="/settings"], [data-tab-item$="settings-tab"]');

Expand Down

0 comments on commit b456414

Please sign in to comment.