mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 11:36:31 +08:00
The methods group_has_permission? and user_has_permission? were returning nil, not false, if the entity did not have permission even though they are framed as questions. Let's return false as expected, which is also what we do for the multiple versions of these which are group_has_any_permission? and user_has_any_permission? |
||
|---|---|---|
| .. | ||
| mixed_target_error.rb | ||
| target.rb | ||
| user.rb | ||