# HG changeset patch # User Matthew Wild # Date 1665158288 -3600 # Node ID 7eabf8d78978cad0034855d43c185837100b945d # Parent 2cbf0e9314ffe1a38906021a45f5c7bbe81b08a1 util.roles: Return nil if the role has no explicit policy (fixes inheritance) Previously, if the first inherited role had no opinion, it returned false and prevented further consultation of other inherited roles. This bug was found thanks to the implementation of missing test cases identified through mutation testing. diff -r 2cbf0e9314ff -r 7eabf8d78978 util/roles.lua --- a/util/roles.lua Fri Oct 07 11:35:56 2022 +0100 +++ b/util/roles.lua Fri Oct 07 16:58:08 2022 +0100 @@ -30,7 +30,7 @@ end end end - return false; + return nil; end end