Skip to content

Commit

Permalink
BXC-4327 only allow export member order for work objects (#1647)
Browse files Browse the repository at this point in the history
* only allow export member order for work objects

* remove export option from root
  • Loading branch information
krwong authored Jan 2, 2024
1 parent 2aaa757 commit b3a48e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions static/js/admin/src/ResultObjectActionMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ define('ResultObjectActionMenu', [ 'jquery', 'jquery-ui', 'StringUtilities', 'A
}

// Export actions
if (metadata.type !== 'File' && $.inArray('viewHidden', metadata.permissions) !== -1) {
if (!isContentRoot && metadata.type !== 'File' && $.inArray('viewHidden', metadata.permissions) !== -1) {
items["export"] = {name: "Export", items: {}}

if (!isContentRoot) {
items['export']['items']["exportCSV"] = {name: "Export CSV"};
}
items['export']['items']["exportCSV"] = {name: "Export CSV"};

items['export']['items']["exportMemberOrder"] = {name: "Export Member Order"};
if (metadata.type === 'Work') {
items['export']['items']["exportMemberOrder"] = {name: "Export Member Order"};
}
}

items["copyid"] = {name : 'Copy PID to Clipboard'};
Expand Down

0 comments on commit b3a48e0

Please sign in to comment.