Skip to content

Commit 3d0c9ea

Browse files
committed
fix(flp): disable folder-level actions accordingly
1 parent 8920b0e commit 3d0c9ea

File tree

3 files changed

+3
-0
lines changed
  • packages
    • app-aco/src/components/FolderTree/MenuActions
    • app-headless-cms/src/admin/components/ContentEntries/Table
    • app-page-builder/src/admin/components/Table/Table

3 files changed

+3
-0
lines changed

packages/app-aco/src/components/FolderTree/MenuActions/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const MenuActions: React.VFC<MenuActionsProps> = ({
3232
return null;
3333
}
3434

35+
// If the user cannot manage structure for the folder, there's no sense to show the menu.
3536
if (!folder.canManageStructure) {
3637
return null;
3738
}

packages/app-headless-cms/src/admin/components/ContentEntries/Table/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ export const Table = forwardRef<HTMLDivElement, TableProps>((props, ref) => {
150150
);
151151
}
152152

153+
// If the user cannot manage structure for the folder, there's no sense to show the menu.
153154
if (!record.original.canManageStructure) {
154155
return null;
155156
}

packages/app-page-builder/src/admin/components/Table/Table/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ export const Table = forwardRef<HTMLDivElement, TableProps>((props, ref) => {
184184
);
185185
}
186186

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

0 commit comments

Comments
 (0)