Osama Sayegh
e229fa65a5
FIX: Allow admins to delete invites created by others ( #34064 )
...
Admins can view the list of invites created by other users and they can
see the delete button for invites in the list, but it currently doesn't actually
delete anything due to a bug in the `invites#destroy` controller action
where it looks up the invite record by the given id and expects it to be
created by the current user, but when an invite is being deleted by an admin,
this logic fails because the invite isn't created by the admin.
This commit fixes the issue by removing this check for current user and
adding a proper guardian check that validates the action is performed by
either the user who created the invite or an admin.
Internal topic: t/158288.
2025-08-12 05:43:01 +03:00
..
2025-08-06 15:27:28 +08:00
2025-08-06 10:09:01 +02:00
2023-12-06 16:37:32 +10:00
2025-08-06 10:09:01 +02:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2024-05-22 12:50:21 -03:00
2025-05-01 10:44:49 +01:00
2025-07-22 09:59:44 +02:00
2023-01-09 14:14:59 +00:00
2023-09-13 19:21:44 +05:30
2023-05-25 14:53:59 +02:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2025-01-29 11:02:42 -04:00
2023-01-09 14:14:59 +00:00
2024-12-09 19:17:16 +01:00
2023-06-07 17:19:58 -05:00
2025-07-01 11:01:13 +10:00
2024-05-28 12:59:24 +08:00
2025-03-03 13:09:08 +01:00
2023-01-09 14:14:59 +00:00
2025-08-07 16:25:16 +08:00
2025-06-09 14:20:04 +01:00
2025-02-04 13:32:30 -03:00
2025-07-29 15:09:02 +08:00
2023-01-09 14:14:59 +00:00
2025-05-14 16:31:19 -05:00
2024-02-12 12:07:14 +02:00
2024-06-25 19:32:18 +08:00
2025-05-14 11:25:43 -04:00
2025-02-04 13:32:53 -03:00
2025-08-12 05:43:01 +03:00
2025-06-03 15:45:21 +08:00
2025-06-13 11:25:13 -03:00
2024-10-30 05:31:14 +03:00
2023-01-09 14:14:59 +00:00
2025-01-23 12:26:59 -05:00
2024-06-25 19:32:18 +08:00
2023-01-09 14:14:59 +00:00
2024-06-25 19:32:18 +08:00
2024-06-28 10:09:37 +02:00
2024-02-20 09:48:09 +10:00
2023-01-09 14:14:59 +00:00
2025-06-11 10:39:01 -07:00
2023-01-09 14:14:59 +00:00
2025-06-11 10:39:01 -07:00
2025-07-10 09:08:00 +02:00
2024-06-25 19:32:18 +08:00
2023-01-09 14:14:59 +00:00
2025-07-21 21:00:48 +01:00
2025-03-24 14:27:18 +11:00
2025-07-04 17:46:41 +10:00
2025-03-31 12:40:35 +11:00
2025-06-18 13:30:26 +08:00
2025-04-16 16:51:32 +10:00
2025-02-27 10:34:18 +01:00
2025-07-23 09:34:42 +02:00
2024-05-06 11:32:18 -05:00
2023-01-09 14:14:59 +00:00
2025-02-04 13:32:30 -03:00
2023-01-09 14:14:59 +00:00
2023-01-23 14:48:33 +10:00
2025-05-15 08:48:06 -05:00
2023-01-09 14:14:59 +00:00
2025-03-25 06:42:23 +03:00
2024-10-18 19:22:13 +02:00
2025-07-09 05:13:19 +03:00
2025-08-01 15:19:20 +08:00
2025-03-03 16:32:25 +11:00
2024-06-25 19:32:18 +08:00
2025-05-08 10:40:36 -07:00
2024-05-27 15:25:32 +10:00
2025-07-15 11:42:30 +08:00
2025-02-10 13:12:16 +10:00
2024-04-10 17:35:42 +03:00
2024-12-30 11:10:48 -05:00
2025-03-14 14:34:44 -04:00
2024-06-25 19:32:18 +08:00
2025-04-22 15:36:48 +08:00
2022-11-24 19:16:28 +04:00
2025-07-30 19:51:26 +08:00
2024-06-25 19:32:18 +08:00
2025-07-10 09:08:00 +02:00
2023-01-09 14:14:59 +00:00