mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
bugfix: Only allow add to collection for admins (#133)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
2d5cbe158a
commit
59a5fa6ac6
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ extension ItemBaseModelExtensions on ItemBaseModel {
|
|||
: context.localized.playFromStart(subTextShort(context) ?? name)),
|
||||
),
|
||||
ItemActionDivider(),
|
||||
if (!exclude.contains(ItemActions.addCollection))
|
||||
if (!exclude.contains(ItemActions.addCollection) && isAdmin)
|
||||
if (type != FladderItemType.boxset)
|
||||
ItemActionButton(
|
||||
icon: const Icon(IconsaxOutline.archive_add),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue