0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 11:36:31 +08:00
discourse/lib/acl
Martin Brennan f58515dbb8
DEV: Return false not nil for Acl::Target group + user checks (#42291)
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?
2026-08-04 15:36:14 +10:00
..
mixed_target_error.rb
target.rb DEV: Return false not nil for Acl::Target group + user checks (#42291) 2026-08-04 15:36:14 +10:00
user.rb