Skip to content

Commit 91f020d

Browse files
authored
Fix canUserEditRepo for "Repository refresh" (#23)
1 parent dd3bd2c commit 91f020d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ collect.set('isActionJobRun', [
434434

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

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

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

0 commit comments

Comments
 (0)