Skip to content

Commit

Permalink
fix: fix affective acl shown to non-admins
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Jun 6, 2024
1 parent 6fe57a1 commit ab48ae2
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions src/components/SharingSidebarView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,34 @@
{{ t('groupfolders', 'You') }}
</td>
<td class="state-column">
<AclStateButton :state="getState(OC.PERMISSION_READ, model.permissions, 1)" :read-only="true" />
<AclStateButton :state="getState(OC.PERMISSION_READ, {
permissions: model.permissions,
mask: 31,
})" :read-only="true" />

Check failure on line 64 in src/components/SharingSidebarView.vue

View workflow job for this annotation

GitHub Actions / NPM lint

':read-only' should be on a new line
</td>
<td class="state-column">
<AclStateButton :state="getState(OC.PERMISSION_UPDATE, model.permissions, 1)" :read-only="true" />
<AclStateButton :state="getState(OC.PERMISSION_UPDATE, {
permissions: model.permissions,
mask: 31,
})" :read-only="true" />

Check failure on line 70 in src/components/SharingSidebarView.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Expected indentation of 6 tabs but found 7 tabs

Check failure on line 70 in src/components/SharingSidebarView.vue

View workflow job for this annotation

GitHub Actions / NPM lint

':read-only' should be on a new line
</td>
<td v-if="model.type === 'dir'" class="state-column">
<AclStateButton :state="getState(OC.PERMISSION_CREATE, model.permissions, 1)" :read-only="true" />
<AclStateButton :state="getState(OC.PERMISSION_CREATE, {
permissions: model.permissions,
mask: 31,
})" :read-only="true" />

Check failure on line 76 in src/components/SharingSidebarView.vue

View workflow job for this annotation

GitHub Actions / NPM lint

':read-only' should be on a new line
</td>
<td class="state-column">
<AclStateButton :state="getState(OC.PERMISSION_DELETE, model.permissions, 1)" :read-only="true" />
<AclStateButton :state="getState(OC.PERMISSION_DELETE, {
permissions: model.permissions,

Check failure on line 80 in src/components/SharingSidebarView.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Expected indentation of 7 tabs but found 6 tabs
mask: 31,

Check failure on line 81 in src/components/SharingSidebarView.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Expected indentation of 7 tabs but found 6 tabs
})" :read-only="true" />

Check failure on line 82 in src/components/SharingSidebarView.vue

View workflow job for this annotation

GitHub Actions / NPM lint

':read-only' should be on a new line
</td>
<td class="state-column">
<AclStateButton :state="getState(OC.PERMISSION_SHARE, model.permissions, 1)" :read-only="true" />
<AclStateButton :state="getState(OC.PERMISSION_SHARE, {
permissions: model.permissions,
mask: 31,
})" :read-only="true" />

Check failure on line 88 in src/components/SharingSidebarView.vue

View workflow job for this annotation

GitHub Actions / NPM lint

':read-only' should be on a new line
</td>
</tr>
</tbody>
Expand Down

0 comments on commit ab48ae2

Please sign in to comment.