Restrict actions on specific users (#42)

* Restrict actions on specific users

* update readme
This commit is contained in:
Aine
2024-09-24 13:25:29 +03:00
committed by GitHub
parent a277ded227
commit e328380c77
12 changed files with 124 additions and 46 deletions

View File

@@ -4,15 +4,17 @@ import { createRoot } from "react-dom/client";
import App from "./App";
import { AppContext } from "./AppContext";
import storage from "./storage";
fetch("config.json")
.then(res => res.json())
.then(props =>
createRoot(document.getElementById("root")).render(
.then(props => {
storage.setItem("as_managed_users", JSON.stringify(props.asManagedUsers));
return createRoot(document.getElementById("root")).render(
<React.StrictMode>
<AppContext.Provider value={props}>
<App />
</AppContext.Provider>
</React.StrictMode>
)
);
});