coolify/app/Models
Andras Bacsai 2cf915aed8 fix(user): use $this instead of Auth::user() in User model methods
Fix isInstanceAdmin(), currentTeam(), otherTeams(), and role() methods
to operate on the actual User instance instead of always using the
authenticated user. This ensures correct behavior when these methods
are called on non-authenticated user instances (e.g., in ActivityMonitor).

Also fix settings route check to use routeIs() instead of path matching.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-28 13:55:55 +01:00
..
Application.php refactor: replace queries with cached versions for performance improvements 2025-12-08 13:39:33 +01:00
ApplicationDeploymentQueue.php refactor(deployment): enhance deployment data retrieval and relationships 2025-10-04 18:02:20 +02:00
ApplicationPreview.php test: Add comprehensive preview deployment port and path tests 2025-12-17 21:35:54 +01:00
ApplicationSetting.php Add per-application Docker image retention for rollback capability 2025-12-05 11:02:07 +01:00
BaseModel.php
CloudInitScript.php refactor: improve cloud-init script UX and remove description field 2025-10-11 11:16:28 +02:00
CloudProviderToken.php fix: add UUID support to CloudProviderToken model 2025-12-10 08:59:13 +01:00
DiscordNotificationSettings.php feat(proxy): add Traefik version tracking with notifications and dismissible UI warnings 2025-11-14 11:35:22 +01:00
DockerCleanupExecution.php
EmailNotificationSettings.php feat(proxy): add Traefik version tracking with notifications and dismissible UI warnings 2025-11-14 11:35:22 +01:00
Environment.php refactor(global-search, environment): streamline environment retrieval with new query method 2025-10-08 19:58:36 +02:00
EnvironmentVariable.php Add runtime and buildtime properties to environment variable booted method 2025-12-03 10:25:38 +01:00
GithubApp.php fixed github app deleting private key when it is used by other resources 2025-10-30 01:16:59 +05:30
GitlabApp.php
InstanceSettings.php Add toggleable wire:navigate SPA navigation with prefetching 2025-12-17 12:09:13 +01:00
LocalFileVolume.php fix: Improve read-only volume detection and UI messaging 2025-12-11 21:25:33 +01:00
LocalPersistentVolume.php fix: Prevent N+1 query in LocalPersistentVolume.isDockerComposeResource() 2025-12-11 21:23:46 +01:00
OauthSetting.php feat(auth): Add Clerk OAuth Provider (#5553) 2025-06-18 14:29:46 +02:00
PersonalAccessToken.php
PrivateKey.php refactor: replace queries with cached versions for performance improvements 2025-12-08 13:39:33 +01:00
Project.php refactor: replace queries with cached versions for performance improvements 2025-12-08 13:39:33 +01:00
ProjectSetting.php
PushoverNotificationSettings.php feat(proxy): add Traefik version tracking with notifications and dismissible UI warnings 2025-11-14 11:35:22 +01:00
S3Storage.php Fix S3 credential whitespace issue with proper trimming 2025-12-15 12:05:54 +01:00
ScheduledDatabaseBackup.php fix(models): update sorting of scheduled database backups to order by creation date instead of name 2025-09-26 08:24:38 +02:00
ScheduledDatabaseBackupExecution.php feat(backup): enhance backup job with S3 upload handling and notifications 2025-10-07 15:02:23 +02:00
ScheduledTask.php feat(jobs): improve scheduled tasks with retry logic and queue cleanup 2025-11-10 11:11:18 +01:00
ScheduledTaskExecution.php feat(jobs): improve scheduled tasks with retry logic and queue cleanup 2025-11-10 11:11:18 +01:00
Server.php Optimize PushServerUpdateJob performance with batch updates and async jobs 2025-12-15 14:06:32 +01:00
ServerSetting.php Fix: Concurrent builds ignored & add deployment queue limit (#7488) 2025-12-11 11:03:02 +01:00
Service.php refactor: replace queries with cached versions for performance improvements 2025-12-08 13:39:33 +01:00
ServiceApplication.php refactor: replace queries with cached versions for performance improvements 2025-12-08 13:39:33 +01:00
ServiceDatabase.php refactor: replace queries with cached versions for performance improvements 2025-12-08 13:39:33 +01:00
SharedEnvironmentVariable.php feat(acl): Change views/backend code to able to use proper ACL's later on. Currently it is not enabled. 2025-08-26 10:27:38 +02:00
SlackNotificationSettings.php feat(proxy): add Traefik version tracking with notifications and dismissible UI warnings 2025-11-14 11:35:22 +01:00
SslCertificate.php
StandaloneClickhouse.php Refactor restart tracking and add missing model casts 2025-12-17 17:45:58 +01:00
StandaloneDocker.php Optimize PushServerUpdateJob performance with batch updates and async jobs 2025-12-15 14:06:32 +01:00
StandaloneDragonfly.php Refactor restart tracking and add missing model casts 2025-12-17 17:45:58 +01:00
StandaloneKeydb.php Refactor restart tracking and add missing model casts 2025-12-17 17:45:58 +01:00
StandaloneMariadb.php Refactor restart tracking and add missing model casts 2025-12-17 17:45:58 +01:00
StandaloneMongodb.php Refactor restart tracking and add missing model casts 2025-12-17 17:45:58 +01:00
StandaloneMysql.php Refactor restart tracking and add missing model casts 2025-12-17 17:45:58 +01:00
StandalonePostgresql.php Refactor restart tracking and add missing model casts 2025-12-17 17:45:58 +01:00
StandaloneRedis.php Refactor restart tracking and add missing model casts 2025-12-17 17:45:58 +01:00
Subscription.php
SwarmDocker.php
Tag.php feat(validation): centralize validation patterns for names and descriptions 2025-08-19 12:14:48 +02:00
Team.php feat(proxy): add Traefik version tracking with notifications and dismissible UI warnings 2025-11-14 11:35:22 +01:00
TeamInvitation.php Update app/Models/TeamInvitation.php 2025-09-25 11:33:32 +02:00
TelegramNotificationSettings.php feat(proxy): add Traefik version tracking with notifications and dismissible UI warnings 2025-11-14 11:35:22 +01:00
User.php fix(user): use $this instead of Auth::user() in User model methods 2025-12-28 13:55:55 +01:00
UserChangelogRead.php feat(changelog): implement automated changelog fetching from GitHub and enhance changelog read tracking 2025-08-12 10:07:11 +02:00
WebhookNotificationSettings.php fix: update webhook notification settings migration to use updateOrInsert and add logging 2025-11-25 15:35:01 +01:00