Commit Graph

141 Commits

Author SHA1 Message Date
Roardom
fca4543949 Revert "Allow Admins to Edit Any Profile"
This reverts commit 797395ac87.
2025-05-26 03:35:46 +00:00
Roardom
868ad35aa4 refactor: swap magic RedirectResponse withX('Y') to with('X', 'Y')
Allows ctrl+clicking to access the underlying function unlike the previous magic implementation. Probably also negligibly faster.

Swapped all instances of `>withSuccess(` -> `>with('success', `, `>withWarning(` -> `>with('warning', `, and `>withInfo(` -> `>with('info', ` with ide's find and replace.
2025-01-21 16:05:11 +00:00
HDVinnie
428bf63910 add: base donation system 2024-09-12 13:03:38 -04:00
Roardom
d4b05d3961 fix: don't save non-existant can_download state
This value isn't sent in the form and shouldn't be here.
2024-08-06 01:40:57 +00:00
Roardom
2e91e1157f fix: some user group permissions
These permissions were never meant to be directly edited by staff. They should never have been added to the staff user edit page as it just caused confusion when the settings reset at the daily group change. I've now added these settings to the group directly and allow the settings on the user edit page to override the group settings. I refrained from fixing the can_download permission for now, because so many different things affect it and it will need at 3 separate permissions to control everything it does. Trying to fix it will take much more effort than what can be fixed today. Because of this, I removed the setting from the user edit page to reduce confusion from staff who don't realize it is controlled by the scheduler. Relevant issue: #1820.
2024-07-26 22:35:45 +00:00
Roardom
c33376608b fix: properly remove receiver_id column from private_messages 2024-06-19 09:41:05 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom
6bcdb71bde fix: group order in various locations 2024-02-01 12:27:50 +00:00
HDVinnie
aa9a1be77d PHP Style Change (Laravel Pint CI) 2024-01-07 19:36:27 +00:00
HDVinnie
f3015b50b1 Merge pull request #3355 from HDInnovations/User-Deletes
(Fix) User Deletes
2024-01-07 14:35:37 -05:00
HDVinnie
0acb5d30ac update: UserController.php 2024-01-07 14:32:19 -05:00
HDVinnie
aa3dc8ed18 refactor: enums 2024-01-04 03:26:10 -05:00
HDVinnie
46b60bd434 fix: user soft deleting
- adds missing relation
- syncs AutoSoftDeleteDisabledUsers and destroy function in staff user controller
2024-01-04 02:15:00 -05:00
HDVinnie
3f03214e39 PHP Style Change (Laravel Pint CI) 2023-11-07 23:54:38 +00:00
HDVinnie
834f7f4d7a update: UserGroups ENUM 2023-10-31 06:47:08 -04:00
milkers69
797395ac87 Allow Admins to Edit Any Profile 2023-09-12 21:38:57 -05:00
Roardom
0697daf1d6 update: harden user security setting editing
Although convenient for staff to be able to edit users of the same rank, this presents a security risk
2023-08-06 23:49:22 +00:00
Roardom
741adef615 add: moderation scopes 2023-07-10 04:20:40 +00:00
Roardom
a3394cd2a7 fix: only show groups permitted by the user's rank 2023-07-07 17:52:36 +00:00
Roardom
7b312d219a refactor: use route model binding for staff users 2023-07-07 03:18:13 +00:00
Roardom
3b46c7819b refactor: use route model binding for user routes 2023-07-07 00:28:47 +00:00
Roardom
aef482682b refactor: swap comparing ids to is() and isNot 2023-07-07 00:28:47 +00:00
Roardom
196e09eac6 add: mass assignment to staff user controller 2023-07-07 00:27:19 +00:00
Roardom
9d4789ba91 refactor: require whitespace before statements 2023-07-07 00:27:13 +00:00
Roardom
738bc7f2d1 refactor: single line delete queries 2023-07-07 00:26:17 +00:00
Jay
83faa9517f Add enum import 2023-06-24 17:36:51 +02:00
HDVinnie
57425d7e77 Merge pull request #2848 from Obi-Wana/fork/user-deletion
(Fix) Set group, active, deleted_at, deleted_by when deleting a user
2023-06-23 02:51:11 -04:00
Jay Sizzla
e32c116420 Set group,active,deleted_at,deleted_by when deleting a user 2023-06-22 21:30:19 +02:00
Roardom
d2e36c368e refactor: reduce temporary variables passed to views 2023-06-19 23:25:40 +00:00
Roardom
177c59d88d refactor: swap firstOrFail() for sole() to enforce a single result 2023-06-19 23:18:40 +00:00
HDVinnie
588a628e2a Merge pull request #2663 from Roardom/update-user-profile 2023-04-27 12:16:56 -04:00
Roardom
6e64801e88 update: user profile views 2023-04-27 12:00:49 +00:00
Roardom
f12ccff393 fix: don't delete notes from soft deleted users 2023-04-25 21:01:40 +00:00
Roardom
05ad4c37b9 add: external tracker support 2023-03-27 04:17:30 -05:00
HDVinnie
3650900c97 update: lint
- not_operator_with_space to false
2023-02-03 16:01:29 -05:00
HDVinnie
472c820f99 update: UNIT3D linting
- github action updated with new ruleset in pint.json
- codebase linted with new ruleset
- contributors can now run `./vendor/bin/pint`
- action workflow will auto correct any lint issues upon commit/opened pull request
2023-02-02 08:02:34 -05:00
Roardom
99b7bcc6f2 refactor: move staff user request to form request 2023-01-08 05:05:58 -06:00
Roardom
47f64e47da update: cache freeleech tokens 2023-01-04 23:10:03 -06:00
Roardom
985423e267 update: announce 2023-01-04 05:46:02 -06:00
Roardom
a78ac29132 update: user followers 2022-12-28 16:26:26 -06:00
HDVinnie
2ca429c4ce Revert "PSR12 Linting"
This reverts commit 7e65e1d589.
2022-09-11 19:51:58 -04:00
HDVinnie
7e65e1d589 PSR12 Linting 2022-09-11 23:50:41 +00:00
StyleCI Bot
e292545306 Apply fixes from StyleCI 2022-05-31 22:06:07 +00:00
Shift
be2d37ed6e Use Illuminate\Support\Carbon 2022-05-31 22:05:34 +00:00
HDVinnie
8e8758674b fix: #2163
- closes #2163
2022-03-15 07:20:56 -04:00
HDVinnie
594b7864d9 refactor: adopt new helpers in laravel 9 2022-03-06 17:20:05 -05:00
StyleCI Bot
51de6077db Apply fixes from StyleCI 2022-02-04 02:29:17 +00:00
HDVinnie
ecaded51a8 Merge pull request #2099 from innocente205/patch-1
(Update) UserController
2022-02-03 21:29:11 -05:00
innocente205
6593be1680 Update UserController.php
Remove history records before deleting user.
2022-02-04 09:03:52 +07:00
HDVinnie
ff629faaec Merge pull request #2096 from innocente205/patch-1
(Fix) Freeleech Tokens
2022-02-03 03:02:08 -05:00