소스 검색

fix: Genre playlists not editable

Owen Diffey 3 년 전
부모
커밋
52121fb13a
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      frontend/src/components/modals/EditPlaylist/index.vue

+ 3 - 1
frontend/src/components/modals/EditPlaylist/index.vue

@@ -62,7 +62,9 @@
 						v-if="
 							userId === playlist.createdBy ||
 							isEditable() ||
-							(playlist.type === 'genre' && isAdmin())
+							((playlist.type === 'genre' ||
+								playlist.type === 'artist') &&
+								isAdmin())
 						"
 					/>
 					<add-songs