mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 19:23:16 +08:00
3ee4b59c64
Instead of passing `user` to `guardian.can_chat?`, we can just use the inner `@user` that is part of the guardian instance already to determine whether that user can chat, since this is how it works for all other usages of guardian even within chat. |
||
---|---|---|
.. | ||
components | ||
fabricators | ||
integration | ||
jobs | ||
lib | ||
mailers | ||
models | ||
queries | ||
requests | ||
serializer | ||
services | ||
support | ||
system | ||
validators | ||
plugin_helper.rb | ||
plugin_spec.rb |