mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
users: Allow spectators to access /users
API endpoint.
We need this to support faster initial loading time for spectators.
This commit is contained in:
@@ -322,7 +322,9 @@ v1_api_and_json_patterns = [
|
||||
# realm/deactivate -> zerver.views.deactivate_realm
|
||||
rest_path("realm/deactivate", POST=deactivate_realm),
|
||||
# users -> zerver.views.users
|
||||
rest_path("users", GET=get_members_backend, POST=create_user_backend),
|
||||
rest_path(
|
||||
"users", GET=(get_members_backend, {"allow_anonymous_user_web"}), POST=create_user_backend
|
||||
),
|
||||
rest_path("users/me", GET=get_profile_backend, DELETE=deactivate_user_own_backend),
|
||||
rest_path("users/<int:user_id>/reactivate", POST=reactivate_user_backend),
|
||||
rest_path(
|
||||
|
Reference in New Issue
Block a user