mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Hide markAsNsfw and markAsAd if user do not have permissions
This commit is contained in:
@@ -212,7 +212,7 @@ List<PopupMenuEntry<MoreVertSettings>> buildMoreVertSettings(
|
||||
title: Text(AppLocalizations.of(context)!.displayAd),
|
||||
),
|
||||
)));
|
||||
if (path == "/gallery/:gid") {
|
||||
if (path == "/gallery/:gid" && auth.canEditGallery == true) {
|
||||
list.add(const PopupMenuDivider());
|
||||
final isAllNsfw = GalleryPage.of(context).isAllNsfw;
|
||||
if (isAllNsfw != null) {
|
||||
|
||||
Reference in New Issue
Block a user