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

@@ -70,7 +70,7 @@ const ShiftPlanList: React.FC = () => {
marginBottom: '30px'
}}>
<h1>📅 Schichtpläne</h1>
{hasRole(['admin', 'instandhalter']) && (
{hasRole(['admin', 'maintenance']) && (
<Link to="/shift-plans/new">
<button style={{
padding: '10px 20px',
@@ -143,7 +143,7 @@ const ShiftPlanList: React.FC = () => {
>
Anzeigen
</button>
{hasRole(['admin', 'instandhalter']) && (
{hasRole(['admin', 'maintenance']) && (
<>
<button
onClick={() => navigate(`/shift-plans/${plan.id}/edit`)}