Skip to content

Commit

Permalink
Merge pull request #9142 from sairina/bookmark-logged-out
Browse files Browse the repository at this point in the history
Redirect for Bookmarks when user is not logged in
  • Loading branch information
sairina authored Mar 4, 2022
2 parents 2f97980 + cf73708 commit 660ca68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kolibri/plugins/learn/assets/src/views/LearnIndex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@
...mapState('examReportViewer', ['exam']),
...mapState(['pageName']),
userIsAuthorized() {
if (this.pageName === PageNames.BOOKMARKS) {
return this.isUserLoggedIn;
}
return (
(plugin_data.allowGuestAccess && this.$store.getters.allowAccess) || this.isUserLoggedIn
);
Expand Down

0 comments on commit 660ca68

Please sign in to comment.