diff options
| -rw-r--r-- | src/mailman_pgp/config/mailman_pgp.cfg | 3 | ||||
| -rw-r--r-- | src/mailman_pgp/config/schema.cfg | 4 | ||||
| -rw-r--r-- | src/mailman_pgp/rest/config.py | 15 | ||||
| -rw-r--r-- | src/mailman_pgp/testing/mailman_pgp.cfg | 5 |
4 files changed, 2 insertions, 25 deletions
diff --git a/src/mailman_pgp/config/mailman_pgp.cfg b/src/mailman_pgp/config/mailman_pgp.cfg index 5156651..4c52e10 100644 --- a/src/mailman_pgp/config/mailman_pgp.cfg +++ b/src/mailman_pgp/config/mailman_pgp.cfg @@ -101,6 +101,3 @@ allow_write_private_key: yes # Allow the accessing of this plugin configuration through the REST API. allow_read_config: yes - -# Allow the modification of this plugin configuration through the REST API. -allow_write_config: no
\ No newline at end of file diff --git a/src/mailman_pgp/config/schema.cfg b/src/mailman_pgp/config/schema.cfg index cd3a2c4..e6e90c2 100644 --- a/src/mailman_pgp/config/schema.cfg +++ b/src/mailman_pgp/config/schema.cfg @@ -61,6 +61,4 @@ allow_read_private_key: lazr.config.as_boolean allow_write_private_key: lazr.config.as_boolean -allow_read_config: lazr.config.as_boolean - -allow_write_config: lazr.config.as_boolean
\ No newline at end of file +allow_read_config: lazr.config.as_boolean
\ No newline at end of file diff --git a/src/mailman_pgp/rest/config.py b/src/mailman_pgp/rest/config.py index 14a4953..b61e9a3 100644 --- a/src/mailman_pgp/rest/config.py +++ b/src/mailman_pgp/rest/config.py @@ -55,18 +55,3 @@ class AConfig: resource = {self._option: config.get(self._section, self._option)} okay(response, etag(resource)) - - def on_put(self, request, response): - if not config.get_value('rest', 'allow_write_config'): - forbidden(response) - return - if self._section is None: - # set whole config - pass - else: - if self._option is None: - # set section - pass - else: - # set value - pass diff --git a/src/mailman_pgp/testing/mailman_pgp.cfg b/src/mailman_pgp/testing/mailman_pgp.cfg index d7807ba..d9570eb 100644 --- a/src/mailman_pgp/testing/mailman_pgp.cfg +++ b/src/mailman_pgp/testing/mailman_pgp.cfg @@ -101,7 +101,4 @@ allow_read_private_key: yes allow_write_private_key: yes # Allow the accessing of this plugin configuration through the REST API. -allow_read_config: yes - -# Allow the modification of this plugin configuration through the REST API. -allow_write_config: no
\ No newline at end of file +allow_read_config: yes
\ No newline at end of file |
