Lance Pioch
1bf6a880fb
Add nullable_type_declaration_for_default_null_value rule
2024-10-19 18:41:08 -04:00
Lance Pioch
96acd268be
Add concat_space rule
2024-10-19 18:30:34 -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
Boy132
c2b1a98d29
Convert variable "rules" to array ( #507 )
...
* convert variable "rules" to array
* allow importing eggs with string rules
* fix tests
* update stock eggs to rules array
2024-08-19 08:33:53 +02:00
Boy132
70c31eef8f
Refactor UserTransformers ( #423 )
...
* remove AccountTransformer and update UserTransformer (client api) to match UserTransformer (application api)
* rename "toVueObject"
* fix tests
* forgot to rename this
* backwards compat
* fix tests
2024-06-23 16:33:18 +02:00
MartinOscar
aa08e774a1
Fix varchar(191) by replacing with 255 #135 ( #376 )
...
* Add Nullable
* Edit filament & AppServiceProvider
* Pint
* Patch tests
* Actually patching tests
* Actually patching tests
* Remove length
* Remove defaultStringLength
* Let’s see the differences
---------
Co-authored-by: Lance Pioch <git@lance.sh>
2024-06-16 13:56:18 -04:00
Boy132
b1928e89b4
Merge branch 'pelican-dev:main' into replace/encrypt-decrypt
2024-05-31 23:04:43 +02:00
Boy132
b6e46f758d
Remove hashids ( #282 ) and close #269
2024-05-29 18:41:44 -04:00
Boy132
82fd547484
replace encrypt/ decrypt with encrypted casting
2024-05-28 15:24:20 +02:00
Boy132
703e5480ff
add missing fields to StoreScheduleRequest
2024-05-13 18:55:59 +02: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
358ac96ac1
Swap http client out
2024-03-23 16:10:47 -04:00
Lance Pioch
f795b38db5
Better way
2024-03-23 11:27:26 -04:00
Lance Pioch
e3947e4b50
Only check first token
2024-03-23 11:20:15 -04:00
Lance Pioch
f7bc9f005f
Styling fixes
2024-03-23 08:10:28 -04:00
Lance Pioch
49de8fae3e
Shouldn’t be testing controllers in this case…
2024-03-23 08:07:54 -04:00
Lance Pioch
03b1fc4636
Update this
2024-03-22 21:34:19 -04:00
Lance Pioch
29b3debee2
Use Laravel’s same return types
2024-03-19 21:12:27 -04:00
Lance Pioch
f5269e7e5c
Fix tests visibility
2024-03-19 21:09:16 -04:00
Lance Pioch
d4d3ffc96c
Use faker methods instead of properties
2024-03-19 16:47:02 -04:00
Lance Pioch
f7c2c1a84c
Formatting
2024-03-17 00:40:18 -04:00
Lance Pioch
4969aed383
Remove daemon command repo
2024-03-16 15:11:10 -04:00
Lance Pioch
e4cee4d69d
Remove locations
2024-03-14 02:23:30 -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
Boy132
f2095e815e
Allow users to change the server description ( #4420 )
2022-10-31 10:20:53 -06:00
Matthew Penner
cbcf62086f
Upgrade to Laravel 9 ( #4413 )
...
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
2022-10-14 10:59:20 -06:00
Dane Everitt
c748fa9842
fix: exclude any permissions not defined internally when updating or creating subusers ( #4416 )
2022-10-09 16:14:16 -06:00
Dane Everitt
e0e0689846
feat: bump account key limit to 25 ( #4417 )
...
Closes #4394
2022-10-08 15:14:03 -06:00
DaneEveritt
2d836156d2
Update totp disable modal; require password for enable operation
2022-07-03 14:27:37 -04:00
DaneEveritt
b052d29a5f
Fix failing integration test
2022-06-18 14:25:24 -04:00
DaneEveritt
7224ca81de
Fix bug preventing the creation of API keys with CIDR ranges
2022-06-18 14:21:20 -04:00
DaneEveritt
03a497fb8a
Use a post request to delete SSH keys, some hashes use slashes which cause 404 errors; closes #4100
2022-05-30 17:28:42 -04:00
DaneEveritt
9300e1116d
Fix failing tests
2022-05-29 20:39:51 -04:00
DaneEveritt
0621d8475d
Return tests to passing now that we don't ignore a critical event...
2022-05-29 17:52:14 -04:00
DaneEveritt
09832cc558
Ensure we can properly create an activity log entry; always return soft-deleted models
2022-05-29 17:07:54 -04:00
DaneEveritt
d4bf6bd46a
Add test coverage and fix permissions mistake
2022-05-15 17:30:57 -04:00
DaneEveritt
6554164252
Add test coverage for the SSH key endpoints
2022-05-14 18:08:48 -04:00
DaneEveritt
5705d7dbdd
Run php-cs-fixer
2022-05-14 16:03:50 -04:00
DaneEveritt
e88d24e0db
Don't allow allocations to be deleted by users if no limit is defined; closes #3703
2022-05-07 15:05:28 -04:00
Dane Everitt
2b3303c46b
Fix changing a user password to not incorrectly handle logging out old sessions; closes #3531
2021-08-15 17:37:12 -07:00
Dane Everitt
25d9ba4779
Run php-cs-fixer
2021-08-15 17:20:36 -07:00
Dane Everitt
22f1341fea
reformat
2021-08-07 09:19:21 -07:00
Dane Everitt
75e0a862e7
Add another sanity check for websocket permissions
2021-08-07 09:16:29 -07:00
Dane Everitt
d3e3b1db38
Test that a deleted backup makes an audit log entry
2021-07-11 12:15:39 -07:00
Charles Morgan
76ac1998cf
Don't allow backups to be made via schedules if limit = 0 ( #3323 )
2021-05-16 09:47:36 -07:00
Julien Tant
b10f6184e0
remove the test preventing disabled schedule to be manually executed
2021-04-24 18:30:48 -07:00