mirror of
https://github.com/sct/overseerr.git
synced 2025-09-29 13:33:26 +02:00
fix: check perms to view watchlist slider on user profile (#2980)
This commit is contained in:
@@ -294,7 +294,13 @@ const UserProfile = () => {
|
|||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{(!watchlistItems || !!watchlistItems.results.length) && !watchlistError && (
|
{(user.id === currentUser?.id ||
|
||||||
|
currentHasPermission(
|
||||||
|
[Permission.MANAGE_REQUESTS, Permission.WATCHLIST_VIEW],
|
||||||
|
{ type: 'or' }
|
||||||
|
)) &&
|
||||||
|
(!watchlistItems || !!watchlistItems.results.length) &&
|
||||||
|
!watchlistError && (
|
||||||
<>
|
<>
|
||||||
<div className="slider-header">
|
<div className="slider-header">
|
||||||
<Link
|
<Link
|
||||||
|
Reference in New Issue
Block a user