Skip to content

Commit

Permalink
remove editor access from the changes url path
Browse files Browse the repository at this point in the history
  • Loading branch information
roseeichelmann committed Jan 24, 2024
1 parent 60a614a commit 8a53c17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions atd-vze/src/routes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { isAdmin, isItSupervisor, isEditor } from "./auth/authContext";
import { isAdmin, isItSupervisor } from "./auth/authContext";

const Breadcrumbs = React.lazy(() => import("./views/Base/Breadcrumbs"));
const Cards = React.lazy(() => import("./views/Base/Cards"));
Expand Down Expand Up @@ -179,13 +179,13 @@ const routes = roles => [
name: "Demo UI Components",
component: Dev,
},
(isEditor(roles) || isAdmin(roles) || isItSupervisor(roles)) && {
(isAdmin(roles) || isItSupervisor(roles)) && {
path: "/changes",
exact: true,
name: "Crash Changes",
component: CrashesChanges,
},
(isEditor(roles) || isAdmin(roles) || isItSupervisor(roles)) && {
(isAdmin(roles) || isItSupervisor(roles)) && {
path: "/changes/:id",
exact: true,
name: "Crash Change",
Expand Down

0 comments on commit 8a53c17

Please sign in to comment.