Skip to content

Commit

Permalink
fix(flp): disable folder-level actions accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Nov 8, 2023
1 parent 0cace32 commit 6dd12c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const MenuActions: React.VFC<MenuActionsProps> = ({
return null;
}

// If the user cannot manage structure for the folder, there's no sense to show the menu.
if (!folder.canManageStructure) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export const Table = forwardRef<HTMLDivElement, TableProps>((props, ref) => {
);
}

// If the user cannot manage structure for the folder, there's no sense to show the menu.
if (!record.original.canManageStructure) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ export const Table = forwardRef<HTMLDivElement, TableProps>((props, ref) => {
);
}

// If the user cannot manage structure for the folder, there's no sense to show the menu.
if (!entry.original.canManageStructure) {
return null;
}
Expand Down

0 comments on commit 6dd12c5

Please sign in to comment.