فهرست منبع

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="
 						v-if="
 							userId === playlist.createdBy ||
 							userId === playlist.createdBy ||
 							isEditable() ||
 							isEditable() ||
-							(playlist.type === 'genre' && isAdmin())
+							((playlist.type === 'genre' ||
+								playlist.type === 'artist') &&
+								isAdmin())
 						"
 						"
 					/>
 					/>
 					<add-songs
 					<add-songs