Skip to content

Commit

Permalink
Rebase and only show ResourceDetails if upload is not allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwengerter committed Feb 16, 2023
1 parent 1ab824e commit aae96dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/web-app-files/src/views/spaces/GenericSpace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,11 @@ export default defineComponent({
) {
return true
}
if (isPublicSpaceResource(this.space) && !this.paginatedResources[0].isFolder) {
if (
isPublicSpaceResource(this.space) &&
!this.currentFolder.canUpload({ user: this.user }) &&
!this.paginatedResources[0].isFolder
) {
return true
}
Expand Down

0 comments on commit aae96dc

Please sign in to comment.