Skip to content

Work around `AttributeError: 'User' object has no attribute 'is_admin'`

Yeah, it's a pain that the API of the token differs depending on the type, but that's what we get.

Very quick and dirty patch. We could also rely on checking whether the attribute exists first, but we'll still have to get the value, so a try/catch works as well IMO.

Merge request reports

Loading