# HG changeset patch # User bsw # Date 1611683839 -3600 # Node ID 020fd82c6cb40d6b674237f2531cb8a67218cddf # Parent 2874a199c72749337deb4b7b07b2ddb6c5c86227 Updated include_roles parameter type to boolean diff -r 2874a199c727 -r 020fd82c6cb4 app/main/oauth2/validate.lua --- a/app/main/oauth2/validate.lua Tue Jan 26 18:52:28 2021 +0100 +++ b/app/main/oauth2/validate.lua Tue Jan 26 18:57:19 2021 +0100 @@ -79,7 +79,7 @@ if param.get("include_member_notify_email", atom.boolean) then r.member.notify_email = member.notify_email end - if param.get("include_roles") then + if param.get("include_roles", atom.boolean) then for i, unit in ipairs(member.units) do if unit.attr.role then r.roles = json.object()