Enable packet passwords to be optional, configured by the admin in setup
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 42s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m43s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
2025-01-29 09:42:15 +11:00
parent 8cc561ea2b
commit c9eee48c6a
6 changed files with 33 additions and 11 deletions

View File

@@ -190,6 +190,11 @@ class System extends Model
return $val ?: Setup::findOrFail(config('app.id'))->batch_files;
}
public function getPktPasswdsAttribute(?int $val): bool
{
return $val ?: Setup::findOrFail(config('app.id'))->pkt_passwds;
}
public function getIsOwnedAttribute(): bool
{
return $this->users->count();