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: [
Row(
children: [
if (widget.album != null)
if (widget.album != null &&
widget.album!.albumFile?.isOwned(widget.account.username) ==
true)
_DetailPaneButton(
icon: Icons.photo_album_outlined,
label: L10n.of(context).useAsAlbumCoverTooltip,