Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restrcting the AccessPolicy options allowed during the project setup (#…
…2204) Why this is required: - HDN does not support `Open` as one of the access policies, and hence ideally, it should not show up as one of the options allowed for the user to choose during the set-up of the project. What this PR does: - Since the AccessPolicy names are strictly typed at a lot of places, and the access is based on the Integer comparisons, it is hard to remove the OPEN option as a part of the AccessPolicy class. - This PR modifies the AccessMetadataForm to restrict the choices available based on the environment variable `ALLOWED_ACCESS_POLICIES`, which has a default value set as the 4 available options, if the environment variable is not specified.
- Loading branch information