fix: check perms to view watchlist slider on user profile (#2980)

This commit is contained in:
TheCatLady
2022-08-24 15:43:25 -07:00
committed by GitHub
parent 095048d94a
commit 5d73bc2238

View File

@@ -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