Skip to content

Commit 850b62f

Browse files
committed
Update qfRoundTab: modify edit action accessibility logic
Refactored the edit action in qfRoundTab to dynamically check accessibility based on the current admin's permissions, replacing the previous static false values. This change enhances user permission management in the admin panel.
1 parent a741911 commit 850b62f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/server/adminJs/tabs/qfRoundTab.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,8 +589,8 @@ export const qfRoundTab = {
589589
after: fillProjects,
590590
},
591591
edit: {
592-
isAccessible: false, // Disabled - QF Rounds are now managed in v6-core admin panel
593-
isVisible: false,
592+
isAccessible: ({ currentAdmin }) =>
593+
canAccessQfRoundAction({ currentAdmin }, ResourceActions.EDIT),
594594
handler: async (
595595
request: AdminJsRequestInterface,
596596
response,

0 commit comments

Comments
 (0)