Lance Pioch
4f5e9a6c30
Merge branch 'main' into issue/68
...
# Conflicts:
# app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/ServerResource/Pages/CreateServer.php
# app/Filament/Resources/ServerResource/Pages/EditServer.php
# app/Filament/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/UserResource/Pages/EditProfile.php
# app/Models/Node.php
# app/Models/Objects/DeploymentObject.php
# app/Services/Allocations/AssignmentService.php
# app/Services/Servers/ServerCreationService.php
# app/Services/Servers/TransferServerService.php
# pint.json
2024-10-20 15:14:08 -04:00
Lance Pioch
c7a307af6e
Enforce return and parameter types
2024-10-19 21:02:49 -04:00
Lance Pioch
3d8847a508
Resolve phpstan issues
2024-10-18 22:46:12 -04:00
Lance Pioch
5353d38302
Merge branch 'main' into issue/68
...
# Conflicts:
# app/Filament/Resources/NodeResource/Pages/CreateNode.php
# app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/NodeResource/RelationManagers/NodesRelationManager.php
# app/Filament/Resources/ServerResource/Pages/CreateServer.php
# app/Filament/Resources/ServerResource/Pages/EditServer.php
# app/Filament/Resources/ServerResource/Pages/ListServers.php
# app/Filament/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/UserResource/RelationManagers/ServersRelationManager.php
# app/Transformers/Api/Client/ServerTransformer.php
# composer.lock
# config/panel.php
2024-10-18 21:18:48 -04:00
Boy132
fc643f57f9
Admin Roles ( #502 )
...
* add spatie/permissions
* add policies
* add role resource
* add root admin role handling
* replace some "root_admin" with function
* add model specific permissions
* make permission selection nicer
* fix user creation
* fix tests
* add back subuser checks in server policy
* add custom model for role
* assign new users to role if root_admin is set
* add api for roles
* fix phpstan
* add permissions for settings page
* remove "restore" and "forceDelete" permissions
* add user count to list
* prevent deletion if role has users
* update user list
* fix server policy
* remove old `root_admin` column
* small refactor
* fix tests
* forgot can checks here
* forgot use
* disable editing own roles & disable assigning root admin
* don't allow to rename root admin role
* remove php bombing exception handler
* fix role assignment when creating a user
* fix disableOptionWhen
* fix missing `root_admin` attribute on react frontend
* add permission check for bulk delete
* rename viewAny to viewList
* improve canAccessPanel check
* fix admin not displaying for non-root admins
* make sure non root admins can't edit root admins
* fix import
* fix settings page permission check
* fix server permissions for non-subusers
* fix settings page permission check v2
* small cleanup
* cleanup config file
* move consts from resouce into enum & model
* Update database/migrations/2024_08_01_114538_remove_root_admin_column.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* fix config
* fix phpstan
* fix phpstan 2.0
---------
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
2024-09-21 12:27:41 +02:00
Lance Pioch
36e2fa8e2b
Wip
2024-06-13 11:31:58 -04:00
Boy132
e6dded61a4
backups: ensure requesting node is checked
...
Co-authored-by: matthewpi <matthew@pterodactyl.io>
2024-05-16 11:53:18 +02:00
Lance Pioch
dd8f28b864
Increase cache
2024-04-29 15:02:12 -04:00
Lance Pioch
5d2248ab1f
Implement container statuses from wings
2024-04-29 14:29:04 -04:00
Lance Pioch
69b70bf649
Merge branch 'master' into issue/fix-3
2024-04-18 17:20:23 -04:00
Lance Pioch
c5008a43e7
Use new enum
2024-04-18 03:50:20 -04:00
notCharles
54eaf8ab0f
Change colums
...
Closes https://github.com/pelican-dev/panel/issues/3
2024-04-13 21:51:22 -04:00
Lance Pioch
e1eb79e4e5
Simplify using helper
2024-03-23 17:25:10 -04:00
Lance Pioch
3a95105931
Style fixes
2024-03-19 04:48:57 -04:00
Lance Pioch
2aa9be62a1
Use route model binding
2024-03-17 20:57:06 -04:00
Lance Pioch
b8d0cb0745
Styling
2024-03-17 13:49:19 -04:00
Lance Pioch
3cea8ca979
Better static analysis
2024-03-17 12:52:22 -04:00
Lance Pioch
f7c2c1a84c
Formatting
2024-03-17 00:40:18 -04:00
Lance Pioch
1172fec6e5
Remove record not found exception
2024-03-16 23:34:45 -04:00
Lance Pioch
80c5a97038
Use logger helper
2024-03-16 23:27:24 -04:00
Lance Pioch
666634ae88
Small fixes
2024-03-16 19:28:31 -04:00
Lance Pioch
2aa06fc009
Small replacement fixes
2024-03-16 18:54:57 -04:00
Lance Pioch
4e42cd784a
Remove server repository and interface
2024-03-16 15:01:41 -04:00
Lance Pioch
4ea5341e97
Remove daemon transfer repository
2024-03-16 14:35:13 -04:00
Lance Pioch
883314b74a
Small updates
2024-03-12 22:47:32 -04:00
Lance Pioch
c83dd86a41
Switch namespace back to App
2024-03-12 22:39:16 -04:00
Matthew Penner
1d38b4f0e2
Laravel 10 ( #4706 )
2023-02-23 12:30:16 -07:00
Matthew Penner
6272bb6710
api(remote): cleanup
2022-12-01 11:52:22 -07:00
Matthew Penner
3c278a8c51
api(remote): check if transfer is present before trying to update status
2022-12-01 11:51:26 -07:00
Lance Pioch
a4f6870518
server: track reinstall failures differently from initial install failures ( #4531 )
2022-11-21 13:53:54 -07:00
Matthew Penner
df2402b54f
Streaming Transfers ( #4548 )
2022-11-14 18:25:07 -07:00
Matthew Penner
cbcf62086f
Upgrade to Laravel 9 ( #4413 )
...
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
2022-10-14 10:59:20 -06:00
Matthew Penner
44598bf724
Support configuring storage class for S3 backup uploads ( #4399 )
...
Closes <https://github.com/pterodactyl/panel/issues/4072 >
2022-10-04 19:39:25 -06:00
Matthew Penner
2dcc46ecd6
backups: support Cloudflare R2 by listing uploaded parts from Wings
2022-09-26 11:15:52 -06:00
Pascal Zarrad
1ca4b08b48
backups: add S3 part size configuration ( #4382 )
2022-09-25 14:38:49 -06:00
Matthew Penner
8e1a21563e
server: add configuration for install notifications ( #4331 )
...
* server: track `installed_at`, only send install notification on first install
* server: add configuration for install notifications
2022-09-25 13:16:58 -06:00
DaneEveritt
2da8042b0f
Fix clock()
usage causing errors in prod environments
2022-07-24 20:43:14 -04:00
DaneEveritt
7558c0380e
Don't log SFTP logins, it just is noisy
2022-07-10 14:30:11 -04:00
DaneEveritt
33ab762f5a
Add support for tracking more SFTP specific events
2022-07-09 19:30:38 -04:00
DaneEveritt
2e01891074
Account for natural event naming
2022-07-09 17:53:07 -04:00
DaneEveritt
1eee55b27c
Add endpoint needed for recieving and processing activity
2022-07-09 17:45:38 -04:00
DaneEveritt
271197e823
Fix cs-fix run
2022-06-26 16:21:07 -04:00
DaneEveritt
287fd60891
Log activity when modifying account details
2022-05-29 18:48:35 -04:00
DaneEveritt
0b2c0db170
Remove last references to audit logs
2022-05-29 18:20:54 -04:00
DaneEveritt
2fc5a734f9
Update backup logic to use activity logs, not audit logs
2022-05-29 16:19:04 -04:00
DaneEveritt
e313dff674
Massively simplify API binding logic
...
Changes the API internals to use normal Laravel binding which automatically supports nested-models and can determine their relationships. This removes a lot of confusingly complex internal logic and replaces it with standard Laravel code.
This also removes a deprecated "getModel" method and fully replaces it with a "parameter" method that does stricter type-checking.
2022-05-22 14:10:01 -04:00
DaneEveritt
d4bf6bd46a
Add test coverage and fix permissions mistake
2022-05-15 17:30:57 -04:00
DaneEveritt
a9364061c1
Store keys in standard format; query with fingerprint not public key
2022-05-15 16:41:15 -04:00
DaneEveritt
b563f13d09
Trim the key provided to query correctly; don't increment throttles when keys aren't found
2022-05-15 16:23:17 -04:00
DaneEveritt
3d6a30c9fd
Oops, don't make this abstract
2022-05-15 16:06:00 -04:00