Skip to content

Commit

Permalink
Revert "fix: 🐝 Viewing managed users now works if media override is t…
Browse files Browse the repository at this point in the history
…he Plex App URL"

This reverts commit 71cd75a.
  • Loading branch information
JamsRepos committed May 3, 2024
1 parent 7eaf403 commit 78665f6
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,7 @@ export default defineComponent({
window.open(`${server_url}/web/index.html#!/users/user?userId=${this.user.token}`, "_blank");
break;
case "plex":
// 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");
window.open(`${server_url}/web/index.html#!/settings/manage-library-access/sharing/${this.user.token}`, "_blank");
break;
}
},
Expand Down

0 comments on commit 78665f6

Please sign in to comment.