mirror of
https://github.com/discourse/discourse.git
synced 2025-02-11 05:44:59 +00:00
Checking group permissions on the client does not work, since not all groups are serialized to the client all the time. We can check `uploaded_avatars_allowed_groups` on the server side and serialize to the current user instead.