openwisp / openwisp-users

Implementation of user management and multi-tenancy for OpenWISP
https://openwisp.io/docs/dev/users/
BSD 3-Clause "New" or "Revised" License
163 stars 74 forks source link

[Fix]REST API errors while opening API Docs #307

Closed aagmanbhatt closed 2 years ago

aagmanbhatt commented 2 years ago

Added additional check of if not self.request.user.is_anonymous so that opening API Docs doesn't throw error. Fixes #291

coveralls commented 2 years ago

Coverage Status

Coverage decreased (-0.1%) to 97.634% when pulling be4daeff1e5a0da9d7ade3367ec3b171f6117a69 on aagman945:issue291 into 554086cabd902a45433e4f32fa155c5566a3268e on openwisp:master.