feat: Enhance user permissions handling when no users on server

This commit is contained in:
2024-12-25 07:21:37 +00:00
committed by GitHub
parent 69c52ee8d6
commit 93b8cc86a5
5 changed files with 29 additions and 19 deletions

View File

@@ -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),

View File

@@ -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),