Skip to content

Commit

Permalink
fix: 🐝 Viewing managed users now works if media override is the Plex …
Browse files Browse the repository at this point in the history
…App URL
  • Loading branch information
JamsRepos committed May 3, 2024
1 parent a075079 commit 71cd75a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ export default defineComponent({
window.open(`${server_url}/web/index.html#!/users/user?userId=${this.user.token}`, "_blank");
break;
case "plex":
window.open(`${server_url}/web/index.html#!/settings/manage-library-access/sharing/${this.user.token}`, "_blank");
// If the user has no email, use the server_url_override if it is not the default Plex URL
const plex_url = !this.user.email ? (this.settings.server_url_override ?? this.settings.server_url).includes("app.plex.tv") ? this.settings.server_url : server_url : server_url;
window.open(`${plex_url}/web/index.html#!/settings/manage-library-access/sharing/${this.user.token}`, "_blank");
break;
}
},
Expand Down

0 comments on commit 71cd75a

Please sign in to comment.