Can only set cover for albums owned by you

This commit is contained in:
Ming Ming 2021-08-22 01:54:02 +08:00
parent e4f75b585a
commit 607e8a23ca

View file

@ -115,7 +115,9 @@ class _ViewerDetailPaneState extends State<ViewerDetailPane> {
children: [ children: [
Row( Row(
children: [ children: [
if (widget.album != null) if (widget.album != null &&
widget.album!.albumFile?.isOwned(widget.account.username) ==
true)
_DetailPaneButton( _DetailPaneButton(
icon: Icons.photo_album_outlined, icon: Icons.photo_album_outlined,
label: L10n.of(context).useAsAlbumCoverTooltip, label: L10n.of(context).useAsAlbumCoverTooltip,