Adds a full access control list editor

This commit is contained in:
zontreck 2024-07-02 17:48:06 -07:00
parent 4b71526270
commit ae1da5f2b2
6 changed files with 201 additions and 6 deletions

View file

@ -93,17 +93,26 @@ class HomePageState extends State<HomePage> {
),
ListTile(
title: Text("Manager Credentials"),
subtitle: Text("Edit ServerManager credentials"),
subtitle:
Text("Edit ServerManager credentials (SUPER USER ONLY)"),
leading: Icon(Icons.key),
onTap: () async {
var reply = await Navigator.pushNamed(context, "/creds",
arguments: settings.serverLoginCreds);
arguments: settings.superuser.name);
if (reply != null) {
Credentials creds = reply as Credentials;
settings.serverLoginCreds = creds;
}
},
),
ListTile(
title: Text("Manage Access Control List"),
subtitle: Text("Non-Super User access manager"),
leading: Icon(Icons.list),
onTap: () async {
Navigator.pushNamed(context, "/acl");
},
),
ListTile(
title: Text("Save Changes"),
subtitle: Text(