Anliegen, Feldkatalog, Feldgruppen, Anfragevorlagen mit Fassungen, Anfrage-Einstiege, Posteingang mit Status und Notizen, Einstellungen mit Empfängern. Das Widget speichert nur die Kennung eines veröffentlichten Einstiegs; Formular, Bedingungen und Annahme kommen zur Laufzeit vom Server (Kompaktformular und mehrstufiger Dialog aus derselben Beschreibung). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
47 lines
1.1 KiB
PHP
47 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Communication;
|
|
|
|
use App\Domain\Communication\CommunicationAccess;
|
|
use Filament\Resources\Resource;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Gemeinsame Grundlage der Konfigurationsbereiche der Kommunikationsverwaltung: Gruppe „Kommunikation“, Rechte,
|
|
* kein Löschen (Einträge werden archiviert, weil Anfragen und Fassungen auf sie verweisen).
|
|
*/
|
|
abstract class CommunicationResource extends Resource
|
|
{
|
|
protected static string|\UnitEnum|null $navigationGroup = 'Kommunikation';
|
|
|
|
public static function canViewAny(): bool
|
|
{
|
|
return CommunicationAccess::configure();
|
|
}
|
|
|
|
public static function canCreate(): bool
|
|
{
|
|
return CommunicationAccess::configure();
|
|
}
|
|
|
|
public static function canEdit(Model $record): bool
|
|
{
|
|
return CommunicationAccess::configure();
|
|
}
|
|
|
|
public static function canView(Model $record): bool
|
|
{
|
|
return CommunicationAccess::configure();
|
|
}
|
|
|
|
public static function canDelete(Model $record): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public static function canDeleteAny(): bool
|
|
{
|
|
return false;
|
|
}
|
|
}
|