Fix "fix share" button showing incorrectly

This commit is contained in:
Ming Ming 2023-08-15 00:03:26 +08:00
parent bc2767be46
commit 5a94a27db1

View file

@ -68,7 +68,9 @@ class _AppBar extends StatelessWidget {
),
],
if (state.collection.contentProvider
is CollectionAlbumProvider)
is CollectionAlbumProvider &&
CollectionAdapter.of(c, bloc.account, state.collection)
.isPermitted(CollectionCapability.share))
PopupMenuItem(
value: _MenuOption.albumFixShare,
child: Text(L10n.global().fixSharesTooltip),