mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
feat: Enhance user permissions handling when no users on server
This commit is contained in:
@@ -42,7 +42,7 @@ class HomeDrawer extends StatelessWidget {
|
||||
},
|
||||
)
|
||||
: Container(),
|
||||
auth.isAdmin == true
|
||||
auth.isAdmin == true || auth.noUser == true
|
||||
? ListTile(
|
||||
leading: const Icon(Icons.manage_accounts),
|
||||
title: Text(i18n.userManagemant),
|
||||
|
||||
@@ -85,7 +85,7 @@ class _SettingsPage extends State<SettingsPage>
|
||||
onTap: () {
|
||||
context.push("/settings/cache");
|
||||
}),
|
||||
auth.isAdmin == true
|
||||
auth.isAdmin == true || auth.noUser == true
|
||||
? ListTile(
|
||||
leading: const Icon(Icons.admin_panel_settings),
|
||||
title: Text(i18n.server),
|
||||
|
||||
Reference in New Issue
Block a user