diff --git a/ofborg/src/acl.rs b/ofborg/src/acl.rs index 7bcb1f0..d05a3c1 100644 --- a/ofborg/src/acl.rs +++ b/ofborg/src/acl.rs @@ -6,7 +6,13 @@ pub struct ACL { } impl ACL { - pub fn new(repos: Vec, trusted_users: Vec, known_users: Vec) -> ACL { + pub fn new( + repos: Vec, + mut trusted_users: Vec, + mut known_users: Vec + ) -> ACL { + trusted_users.iter_mut().map(|x| *x = x.to_lowercase()).last(); + known_users.iter_mut().map(|x| *x = x.to_lowercase()).last(); return ACL { trusted_users: trusted_users, known_users: known_users,