Baue die Verwaltung Kommunikation, die öffentliche Anfrageschnittstelle und das CMS-Widget Anfrage
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>
This commit is contained in:
1 parent
2ee1fc9866
commit
c6a8167601
45 files changed
+5415
No files matched your search
@@ -0,0 +1,46 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user