fix: use PATCH for vehicle type update and correct permission check in FahrzeugEinstellungen
This commit is contained in:
@@ -38,7 +38,7 @@ export default function FahrzeugEinstellungen() {
|
||||
const { hasPermission } = usePermissionContext();
|
||||
const { showSuccess, showError } = useNotification();
|
||||
|
||||
const canEdit = hasPermission('fahrzeuge:edit');
|
||||
const canEdit = hasPermission('checklisten:manage_templates');
|
||||
|
||||
const { data: fahrzeugTypen = [], isLoading } = useQuery({
|
||||
queryKey: ['fahrzeug-typen'],
|
||||
|
||||
Reference in New Issue
Block a user