Skip to content

Commit

Permalink
Merge pull request #3002 from nextcloud/backport/2996/stable27
Browse files Browse the repository at this point in the history
[stable27] fix: fix affective acl shown to non-admins
  • Loading branch information
icewind1991 authored Jun 7, 2024
2 parents c74309c + f95bfc2 commit 0528d84
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 0528d84

Please # to comment.