Adds a full access control list editor
This commit is contained in:
parent
4b71526270
commit
ae1da5f2b2
6 changed files with 201 additions and 6 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue