To achieve this generator we had to create a new access_rights, of singleip. With the help of RDM_RECORDS_CUSTOM_VOCABULARIES.
which then will be used by our RecordIp generator to define the needs and query_filter in order to give of decline access to the record based on given IPs in INVENIO_CONFIG_TUGRAZ_SINGLE_IP.
Steps to test this generator:
Add your desired IPs to the: INVENIO_CONFIG_TUGRAZ_SINGLE_IP.
for example - if we wish to test locally:
INVENIO_CONFIG_TUGRAZ_SINGLE_IP = ["127.0.0.1"]
Create a new record with the "access_right": "singleip".
Test the visibility of the record. by changing the value: INVENIO_CONFIG_TUGRAZ_SINGLE_IP
Also, tests have been written for the RecordIP generator.
RecordIp generator
To achieve this generator we had to create a new
access_rights
, ofsingleip
. With the help ofRDM_RECORDS_CUSTOM_VOCABULARIES
. which then will be used by ourRecordIp
generator to define theneeds
andquery_filter
in order to give of decline access to the record based on given IPs inINVENIO_CONFIG_TUGRAZ_SINGLE_IP
.Steps to test this generator:
IPs
to the:INVENIO_CONFIG_TUGRAZ_SINGLE_IP
. for example - if we wish to test locally:"access_right": "singleip"
.INVENIO_CONFIG_TUGRAZ_SINGLE_IP
Also, tests have been written for the
RecordIP
generator.