27 Commits

Author SHA1 Message Date
Roardom
1e342d98fe add: edit forum permissions when creating/editing group 2024-12-16 11:04:27 +00:00
HDVinnie
a56c0cf73d (Add) New torrent moderator group (#4351)
* add: new torrent moderator group

- this group is limited to moderating and editing torrents via is_editor and is_torrent_modo group permissions
2024-11-26 20:17:49 -05:00
Ion Bazan
4c40916f9d fix test 2024-11-01 16:39:12 +08:00
Ion Bazan
67a34a4283 Update Pest tests 2024-11-01 15:28:28 +08: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
Jay
2ac770746a (Add) Active and inactive uploader staff view (#3824)
Co-authored-by: HDVinnie <hdinnovations@protonmail.com>
2024-07-03 11:38:11 -04:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
HDVinnie
93b17f0419 chore: license 2024-03-19 17:56:44 -04:00
HDVinnie
fdf90b808d (Add) System required groups validation (#3502)
* add: system required validation

- this will stop site operators from renaming system required groups which breaks things like:

`$validatingGroup = cache()->rememberForever('validating_group', fn () => Group::query()->where('slug', '=', 'validating')->pluck('id'));`
2024-02-08 11:45:22 -05:00
HDVinnie
0f53169cef add: missing commit for PR #3389 2024-01-15 21:47:06 -05:00
HDVinnie
8daf39c331 update: test suite 2023-07-11 16:48:07 -04:00
Shift
0f33d2846d Define test classes as final 2023-07-10 18:54:51 +00:00
Shift
812238b4b8 Adopt PHP attributes in test classes 2023-07-10 18:54:51 +00:00
Roardom
a28667f969 refactor: use route model binding for staff groups 2023-07-07 03:18:13 +00:00
HDVinnie
2694409262 fix: group tests 2022-08-28 23:39:38 -04:00
HDVinnie
97394c062f chore: adopt type hints 2022-01-07 23:35:33 -05:00
HDVinnie
d75bbdc665 Apply fixes from StyleCI
[ci skip] [skip ci]
2021-07-13 00:36:19 +00:00
HDVinnie
b5c27ce8cd refactor: convert simple closures to arrow functions 2021-07-12 20:35:41 -04:00
Laravel Shift
fac1da0b42 Shift cleanup 2020-09-08 22:25:06 +00:00
Laravel Shift
089632a4ac Namespace seeders 2020-09-08 22:24:37 +00:00
Laravel Shift
add31768f5 Shift to class based factories 2020-09-08 22:24:30 +00:00
PHP Shift
d8b188772f Shift return type of base TestCase methods
From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:

- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`

[1]: https://phpunit.de/announcements/phpunit-8.html
2020-05-26 00:59:55 +00:00
HDVinnie
6ba593c8e9 tests: update group test 2020-04-01 00:41:47 -04:00
HDVinnie
238482d18d tests: staff controllers 2020-02-25 09:29:48 -05:00
Ben Johnson
65d602f058 tests: Move scaffolded tests into Todo directory
Currently, the test suite requires way longer than necessary because it runs all the scaffolded tests, even though they exit immediately.

Moving them until they are implemented will speed-up the test suite execution time dramatically.
2020-02-17 15:56:39 -05:00
HDVinnie
987bed7a7b Apply fixes from StyleCI
[ci skip] [skip ci]
2020-02-13 21:45:47 +00:00
Laravel Shift
daa7cad1b4 Generate HTTP tests for controllers 2020-01-22 17:19:02 +00:00