Skip to content

Commit

Permalink
Merge pull request #2097 from owncloud/bugfix/refine-public-page-check
Browse files Browse the repository at this point in the history
Fix detection of public pages despite existing auth
  • Loading branch information
Lukas Hirt authored Sep 30, 2019
2 parents 6e4bb5b + 0179187 commit 750d2f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/phoenix.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export default {
...mapActions(['showMessage']),

publicPage () {
return !this.isAuthenticated
// public page is either when not authenticated
// but also when accessing pages that require no auth even when authenticated
return !this.isAuthenticated || this.$route.meta.auth === false
},
downloadFile (file) {
this.addFileToProgress(file)
Expand Down

0 comments on commit 750d2f0

Please sign in to comment.