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 7, 2024
1 parent 6fe57a1 commit fc817a6
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions src/components/SharingSidebarView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,39 @@
{{ 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" />
</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" />
</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" />
</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,
mask: 31,
})"
:read-only="true" />
</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" />
</td>
</tr>
</tbody>
Expand Down

0 comments on commit fc817a6

Please sign in to comment.