* Add Create Database btn on admin side
* Remove unused function
* readd function
* replace refreshform function
* add authorize, remove database limit check
* add random words, use proper name function, catch exceptions on creation
* add validation, match old client area more
* Add more authorize to Database tab
* Add confirmation to delete
* make password hidden / revealable
* better clarification
* Set default and remove placeholder.
* Remove server import, add database model to auth
* Make same changes for the database host page
* Update app/Filament/Resources/ServerResource/Pages/EditServer.php
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
* Update app/Filament/Resources/DatabaseHostResource/RelationManagers/DatabasesRelationManager.php
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
* Update app/Filament/Resources/DatabaseHostResource/RelationManagers/DatabasesRelationManager.php
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
* Remove each hidden
* Return nothing if user has no perms
* This is the way... Im done messing with it...
* Fix view permission for relationship manager
* Update app/Filament/Resources/DatabaseHostResource/RelationManagers/DatabasesRelationManager.php
* Pint
---------
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
Co-authored-by: MartinOscar <40749467+RMartinOscar@users.noreply.github.com>
* better oauth provider loading
* add auth frontend
* add configs for all default providers
* add more default providers
* add env variables to enable oauth providers
* small refactor to link/ unlink routes
* add oauth tab to (admin) profile
* use redirects instead of exceptions
* add notification if no oauth user is found
* use import in config
* remove whmcs provider
* replace hardcoded links with `route`
* redirect to account page on unlink
* remove unnecessary controller and handle linking/ unlinking in action
* only show oauth tab if at least one oauth provider is enabled
* force app timezone to be UTC
* remove asDateTime overwrite
* add custom column to display dates in user timezone
* use `APP_TIMEZONE` as default timezone for new users
* revert accidental pinting
* use RESOURCE_NAME for requests
* use RESOURCE_NAME for transformers
* add permissions field to api key
* add migration for new permissions field
* update tests
* remove debug log
* set column type to "json"
* remove default attribute to fix tests
* fix default value for permissions
* fix after merge
* fix after merge
* allow to "register" custom permissions
* add "role" to default resource names
* fix after merge
* fix phpstan
* fix migrations
* Move these
Move List/Create to their own pages to follow the flow of the other resources.
* Move EditPage aswell
* Move Save
* Labels
* Change Edit/Delete
---------
Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com>
* Prevent hosts with databases from being selected for bulk actions
* Add icons
* Update input to select
* Update app/Filament/Resources/DatabaseHostResource/Pages/ListDatabaseHosts.php
* Add placeholder
* enable tags for nodes
* update icon for cpu column
* disable inline for "force outgoing ip" label
* change label for database hosts resource
* add custom empty state for database hosts & api keys
* add icons to egg tabs
* fix typo
* rename node "Automatic Allocation" to avoid confusion
* run code cleanup
* remove regex for node name
* only check count for application api keys
* replace "New" with "Create"
* change sidebar width to fit "Database Hosts"
* add config option to disable server descriptions
* only disable server descriptions for users but not for admins
* Add ,
* invert
* unset description in server transformer if disabled
* remove testing leftover
---------
Co-authored-by: notCharles <charles@pelican.dev>
* 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>