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 authored and backportbot[bot] committed Jun 7, 2024
1 parent 7249099 commit f8fce33
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 f8fce33

Please # to comment.