Removed too much log by accident.
Removed get_allowed_roles which was used only once.
Used an extra space for the inline function argument.
Ensured that roles is a JSON array of strings.

This should only go without throwing anything if this is the case and I also
don't care about what error it is.
Verified all config before checking roles.