Skip to content

Commit aacae10

Browse files
Explore without an account link directly redirecting to public and my-channels now redirects the unauthorised users
Signed-off-by: Abhishek-Punhani <[email protected]>
1 parent 9190969 commit aacae10

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

contentcuration/contentcuration/frontend/accounts/pages/AccountsMain.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<VDivider />
7878
<p class="mt-4 text-xs-center">
7979
<KButton
80-
href="/channels"
80+
href="/channels/#/public"
8181
:text="$tr('guestModeLink')"
8282
appearance="basic-link"
8383
/>

contentcuration/contentcuration/frontend/channelList/views/Channel/ChannelList.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,15 @@
134134
},
135135
},
136136
created() {
137+
if (
138+
this.isEditable &&
139+
(!this.$store.state.session ||
140+
!this.$store.state.session.currentUser ||
141+
!this.$store.state.session.currentUser.id)
142+
) {
143+
this.$router.replace({ name: RouteNames.CATALOG_ITEMS });
144+
return;
145+
}
137146
this.loadData(this.listType);
138147
},
139148
methods: {

0 commit comments

Comments
 (0)