mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-25 02:48:54 +01:00
Can only set cover for albums owned by you
This commit is contained in:
parent
e4f75b585a
commit
607e8a23ca
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue