Skip to content

Commit

Permalink
Fix canUserEditRepo for "Repository refresh" (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
yakov116 committed Jul 12, 2020
1 parent dd3bd2c commit 91f020d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ collect.set('isActionJobRun', [

export const canUserEditOrganization = (): boolean => isOrganizationProfile() && exists('.pagehead-tabs-item[href$="/settings/profile"]');

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

/** Get the logged-in user’s username */
const getUsername = () => document.querySelector('meta[name="user-login"]')!.getAttribute('content')!;
Expand Down

0 comments on commit 91f020d

Please sign in to comment.