Skip to content

Commit

Permalink
Do not check permissions if they are undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasHirt committed Jul 6, 2020
1 parent 5472362 commit 3e202e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/files/src/components/FilesAppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,10 @@ export default {
hasFreeSpace() {
return (
(this.quota && this.quota.free > 0) ||
(this.currentFolder && this.currentFolder.permissions.indexOf('M') >= 0) ||
(this.quota && this.quota.free) > 0 ||
(this.currentFolder &&
this.currentFolder.permissions &&
this.currentFolder.permissions.indexOf('M') >= 0) ||
this.publicPage()
)
},
Expand Down

0 comments on commit 3e202e2

Please sign in to comment.