mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-12-01 15:05:45 +01:00
fixed role naming instandhalter -> maintenance
This commit is contained in:
@@ -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`)}
|
||||
|
||||
Reference in New Issue
Block a user