Skip to content

Conversation

@TurtIeSocks
Copy link
Collaborator

  • Create unique area keys if an area has a parent, allowing areas of the same name that have different parents
  • Should be backwards compatible with existing system / currently logged in users
  • If you have multiple areas with the same names and want to use areaRestrictions, using only the area name will give permissions to every area with that name, to restrict by parent and area name you must use the format parent-area in the areas array in `areaRestrictions
    "areaRestrictions": [
      {
        "roles": [
          "111111111111111111"
        ],
        "areas": [
          "Downtown" // Grants access to all areas named Downtown
        ]
      },
      {
        "roles": [
          "222222222222222222"
        ],
        "areas": [
          "NewYork-Downtown" // Only grants access to downtown areas that have the parent NewYork
        ]
      }
    ],
  • Sort parents alphabetically
  • Needs more in depth testing

- Create unique area keys if an area has a parent, allowing areas of the same name that have different parents
- *Should* be backwards compatible with existing system / currently logged in users
- If you have multiple areas with the same names and want to use `areaRestrictions`, using only the area name will give permissions to every area with that name, to restrict by parent and area name you must use the format `parent-area` in the `areas` array in `areaRestrictions
- Sort parents alphabetically
@TurtIeSocks TurtIeSocks merged commit 6d96e85 into develop Oct 17, 2022
@TurtIeSocks TurtIeSocks deleted the area-fixes branch October 17, 2022 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants