fixed role naming instandhalter -> maintenance

This commit is contained in:
2025-10-21 20:23:12 +02:00
parent 2200ef6937
commit 5809e6c44c
13 changed files with 193 additions and 266 deletions

View File

@@ -393,7 +393,7 @@ const Dashboard: React.FC = () => {
</div>
{/* Quick Actions - Nur für Admins/Instandhalter */}
{hasRole(['admin', 'instandhalter']) && (
{hasRole(['admin', 'maintenance']) && (
<div style={{ marginBottom: '30px' }}>
<h2 style={{ marginBottom: '15px', color: '#2c3e50' }}>Schnellaktionen</h2>
<div style={{
@@ -535,7 +535,7 @@ const Dashboard: React.FC = () => {
<div style={{ textAlign: 'center', padding: '20px', color: '#666' }}>
<div style={{ fontSize: '48px', marginBottom: '10px' }}>📅</div>
<div>Kein aktiver Schichtplan</div>
{hasRole(['admin', 'instandhalter']) && (
{hasRole(['admin', 'maintenance']) && (
<Link to="/shift-plans/new">
<button style={{
marginTop: '10px',
@@ -643,7 +643,7 @@ const Dashboard: React.FC = () => {
)}
{/* Letzte Schichtpläne (für Admins/Instandhalter) */}
{hasRole(['admin', 'instandhalter']) && (
{hasRole(['admin', 'maintenance']) && (
<div style={{
backgroundColor: 'white',
padding: '20px',