Added permissions functionality

This commit is contained in:
Mitchell McCaffrey
2020-04-26 14:34:27 +10:00
parent 4c65aac189
commit fbdb68596e
5 changed files with 171 additions and 83 deletions

View File

@@ -79,6 +79,14 @@ function MapSettings({
/>
Tokens
</Label>
<Label>
<Checkbox
checked={mapState !== null && mapState.editFlags.includes("map")}
disabled={mapState === null}
onChange={(e) => handleFlagChange(e, "map")}
/>
Map
</Label>
</Flex>
</Box>
</Flex>