powerdns-admin/powerdnsadmin
corubba f0e32a035d Fix deletion of comments
The compaitibility for backends that don't support comments broke the
normal deletion of comments. This is fixed by limiting the
compaitibility to when we don't know for certain whether the backend of
that zone supports comments or not. This is done by checking if the
zone currently contains any comments: If it does, the backend definitly
supports comment; if it doesn't, we don't know and have to assume it
doesn't. The check is done by the "modified_at" attribute, because this
only exists on persistent comments from pdns and not on the "fill-up"
comments that PDA adds.
Luckily this also works perfectly for the deletion case, because to
delete a comment it had to already exist previously.

Fixes #1516
2023-04-16 16:03:44 +02:00
..
lib Added some missing settings to the new AppSettings class. 2023-04-14 19:26:02 -04:00
models Fix deletion of comments 2023-04-16 16:03:44 +02:00
routes Removed unnecessary parenthesis. 2023-04-14 19:00:39 -04:00
services Updated the OAuth service providers to properly respect the new OAuth autoconfiguration settings for each provider. 2023-04-13 13:34:41 -04:00
static Hopefully provided a reliable fix to the settings type conversion issues brought upon with the authentication settings editor overhaul. 2023-04-11 18:50:47 -04:00
templates Updated the application version references in preparation for the next release of 0.4.2. 2023-04-14 19:33:32 -04:00
__init__.py Added some missing settings to the new AppSettings class. 2023-04-14 19:26:02 -04:00
assets.py Moved authentication settings editor JavaScript into js_main assets build process instead of direct linking it to the view. 2023-04-10 19:58:58 -04:00
decorators.py Overhauled app settings implementation to remove redundancy of definitions. Additionally, re-factored settings initialization code to allow for every setting to be defined by environment variable for both bare metal and Docker container deployments. 2023-04-14 07:12:02 -04:00
default_config.py Overhauled app settings implementation to remove redundancy of definitions. Additionally, re-factored settings initialization code to allow for every setting to be defined by environment variable for both bare metal and Docker container deployments. 2023-04-14 07:12:02 -04:00
swagger-spec.yaml Updated the unknown state 2022-05-23 16:46:11 +00:00