Skip to content

Commit

Permalink
fix(perm): disable download model/file feature for readonly users
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasRichel committed Sep 9, 2021
1 parent 2c1030a commit 12a46f7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<span>{{ $t("FilesActionBar.moveButtonText") }}</span>
</BIMDataButton>
<BIMDataButton
:disabled="!project.isAdmin && files.some(f => f.userPermission < 100)"
width="120px"
ghost
squared
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
{{ $t("FileActionsCell.renameButtonText") }}
</BIMDataButton>
<BIMDataButton
:disabled="!project.isAdmin && file.userPermission < 100"
class="file-actions-cell__menu__btn"
ghost
squared
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
</BIMDataButton>

<BIMDataButton
:disabled="
!project.isAdmin && models.some(m => m.document.userPermission < 100)
"
width="120px"
ghost
squared
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
3D
</BIMDataButton>
<BIMDataButton
:disabled="!project.isAdmin && model.document.userPermission < 100"
class="model-actions-cell__btn"
ripple
rounded
Expand Down

0 comments on commit 12a46f7

Please sign in to comment.