mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 12:21:13 +00:00
Fix authorized route false flag
This commit is contained in:
parent
2d88e42cab
commit
cc184a86c8
2 changed files with 1 additions and 3 deletions
|
@ -29,8 +29,6 @@ export function setCacheControl(
|
|||
) {
|
||||
const user = UserService.Instance;
|
||||
let caching: string;
|
||||
console.log("In middleware");
|
||||
console.log(process.env.NODE_ENV);
|
||||
|
||||
if (
|
||||
process.env.NODE_ENV === "production" &&
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
export default function isAuthPath(pathname: string) {
|
||||
return /create_.*|inbox|settings|admin|reports|registration_applications/g.test(
|
||||
return /^\/create_.*|inbox|settings|admin|reports|registration_applications/g.test(
|
||||
pathname
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue