Dan Ungureanu
76a7b75d8a
DEV: Reuse can_invite_to_forum? in can_invite_to? ( #14392 )
...
This commit resolves refactors can_invite_to? to use
can_invite_to_forum? for checking the site-wide permissions and then
perform topic specific checkups.
Similarly, can_invite_to? is always used with a topic object and this is
now enforced.
There was another problem before when `must_approve_users` site setting
was not checked when inviting users to forum, but was checked when
inviting to a topic.
Another minor security issue was that group owners could invite to
group topics even if they did not have the minimum trust level to do
it.
2021-09-29 17:40:16 +03:00
..
2021-06-03 10:52:43 +01:00
2021-06-25 11:34:51 +02:00
2021-09-20 16:26:18 +10:00
2021-09-10 12:59:51 +10:00
2021-08-30 12:31:22 +01:00
2021-08-25 08:46:54 +10:00
2021-06-03 14:47:32 +10:00
2021-08-13 12:00:23 -03:00
2020-05-15 14:23:27 +08:00
2021-07-19 13:54:19 +08:00
2020-04-08 12:42:28 +10:00
2021-07-07 18:57:42 +02:00
2021-08-25 09:37:07 +08:00
2021-07-14 15:18:29 -04:00
2021-09-22 07:59:45 +10:00
2021-09-02 14:55:38 -04:00
2020-07-24 17:19:21 +08:00
2021-05-21 11:43:47 +10:00
2021-01-04 10:34:44 +01:00
2021-08-24 10:46:28 +03:00
2021-09-22 07:59:45 +10:00
2021-03-22 19:41:42 +02:00
2021-08-10 10:25:15 -04:00
2021-06-22 13:00:04 -05:00
2021-02-23 16:20:59 -05:00
2020-06-23 12:09:04 +08:00
2021-04-23 10:24:42 -04:00
2021-06-02 12:43:34 -04:00
2021-02-19 11:03:36 -05:00
2021-05-21 11:43:47 +10:00
2021-04-05 20:31:42 +05:30
2020-12-14 17:49:37 +02:00
2021-07-30 13:36:30 -04:00
2021-09-29 17:40:16 +03:00
2020-10-29 13:01:06 +11:00
2021-09-17 10:41:34 +02:00
2021-05-21 11:43:47 +10:00
2021-05-21 11:43:47 +10:00
2021-01-20 21:32:22 +01:00
2021-05-21 11:43:47 +10:00
2021-05-21 11:43:47 +10:00
2021-06-03 11:39:12 +10:00
2021-05-21 11:43:47 +10:00
2021-05-21 11:43:47 +10:00
2021-09-15 10:16:54 +10:00
2021-07-26 09:14:23 +08:00
2021-06-30 15:51:35 +03:00
2021-08-05 22:07:29 +04:00
2021-08-27 16:26:06 +01:00
2021-09-09 12:03:59 +03:00
2021-08-11 08:39:25 +10:00
2021-05-19 16:04:35 +04:00
2021-09-03 13:15:58 +05:30
2021-09-10 12:59:51 +10:00
2021-07-07 18:57:42 +02:00
2021-07-07 18:57:42 +02:00
2021-06-21 11:06:58 +08:00
2021-05-21 11:43:47 +10:00
2021-07-07 18:57:42 +02:00
2021-07-07 18:57:42 +02:00
2021-05-21 11:43:47 +10:00
2020-07-27 10:23:54 +10:00
2020-09-22 10:17:52 +10:00
2021-05-24 18:13:30 +10:00
2021-05-03 09:21:35 +02:00
2021-09-16 07:58:53 +05:30
2021-06-15 17:25:06 +02:00
2021-01-25 12:04:27 +01:00
2021-04-19 09:43:50 +10:00
2021-09-28 10:05:00 +08:00
2021-07-16 15:25:49 -03:00
2021-09-21 08:45:47 +10:00
2021-08-05 12:56:15 +08:00
2021-07-05 14:17:31 +08:00
2021-06-08 13:25:51 -04:00
2021-08-10 17:25:11 +05:30
2020-12-23 08:51:36 +11:00
2020-10-12 22:54:56 +02:00