Skip to content

Commit

Permalink
fix: preventing sharing of auto-mounted folders (#2374)
Browse files Browse the repository at this point in the history
  • Loading branch information
ironAiken2 authored Apr 29, 2024
1 parent 8ab6072 commit 754e4a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/backend-ai-storage-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1953,9 +1953,10 @@ export default class BackendAiStorageList extends BackendAIPage {
* @param {Object} rowData - the object with the properties related with the rendered item
* */
controlFolderListRenderer(root, column?, rowData?) {
const isSharingAllowed = (
this._unionedAllowedPermissionByVolume[rowData.item.host] ?? []
).includes('invite-others');
const isSharingAllowed =
(
this._unionedAllowedPermissionByVolume[rowData.item.host] ?? []
).includes('invite-others') && !rowData.item.name.startsWith('.');
render(
// language=HTML
html`
Expand Down

0 comments on commit 754e4a9

Please sign in to comment.