Fix access rights for CustomCSS + CustomJS (#207)

* Update configure.phtml

FR : Correction de la gestion des droits.
EN :Rights testing correction

* Update xExtension-CustomJS/configure.phtml

Rights testing correction

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* Update configure.phtml

Postponement of the same update as CustomJS

* Bump versions

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
This commit is contained in:
PsyCh0Taz 2024-03-03 22:31:16 +01:00 committed by GitHub
parent f337a0782d
commit c435529078
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 6 deletions

View file

@ -93,7 +93,7 @@
"name": "Custom CSS", "name": "Custom CSS",
"author": "Marien Fressinaud", "author": "Marien Fressinaud",
"description": "Give possibility to overwrite the CSS with a user-specific rules.", "description": "Give possibility to overwrite the CSS with a user-specific rules.",
"version": "0.4", "version": "0.5",
"entrypoint": "CustomCSS", "entrypoint": "CustomCSS",
"type": "user", "type": "user",
"url": "https://github.com/FreshRSS/Extensions", "url": "https://github.com/FreshRSS/Extensions",
@ -104,7 +104,7 @@
"name": "Custom JS", "name": "Custom JS",
"author": "Frans de Jonge", "author": "Frans de Jonge",
"description": "Apply custom JS.", "description": "Apply custom JS.",
"version": "0.4", "version": "0.5",
"entrypoint": "CustomJS", "entrypoint": "CustomJS",
"type": "user", "type": "user",
"url": "https://github.com/FreshRSS/Extensions", "url": "https://github.com/FreshRSS/Extensions",

View file

@ -12,7 +12,7 @@
</div> </div>
<div class="form-group form-actions"> <div class="form-group form-actions">
<?php if (!empty($this->permission_problem)) { ?> <?php if ($this->permission_problem !== '') { ?>
<p class="alert alert-error"><?= _t('ext.custom_css.permission_problem', $this->permission_problem) ?></p> <p class="alert alert-error"><?= _t('ext.custom_css.permission_problem', $this->permission_problem) ?></p>
<?php } else { ?> <?php } else { ?>
<div class="group-controls"> <div class="group-controls">

View file

@ -2,7 +2,7 @@
"name": "Custom CSS", "name": "Custom CSS",
"author": "Marien Fressinaud", "author": "Marien Fressinaud",
"description": "Give possibility to overwrite the CSS with a user-specific rules.", "description": "Give possibility to overwrite the CSS with a user-specific rules.",
"version": "0.4", "version": "0.5",
"entrypoint": "CustomCSS", "entrypoint": "CustomCSS",
"type": "user" "type": "user"
} }

View file

@ -12,7 +12,7 @@
</div> </div>
<div class="form-group form-actions"> <div class="form-group form-actions">
<?php if (isset($this->permission_problem)) { ?> <?php if ($this->permission_problem !== '') { ?>
<p class="alert alert-error"><?= _t('ext.custom_js.permission_problem', $this->permission_problem) ?></p> <p class="alert alert-error"><?= _t('ext.custom_js.permission_problem', $this->permission_problem) ?></p>
<?php } else { ?> <?php } else { ?>
<div class="group-controls"> <div class="group-controls">

View file

@ -2,7 +2,7 @@
"name": "Custom JS", "name": "Custom JS",
"author": "Frans de Jonge", "author": "Frans de Jonge",
"description": "Apply custom JS.", "description": "Apply custom JS.",
"version": "0.4", "version": "0.5",
"entrypoint": "CustomJS", "entrypoint": "CustomJS",
"type": "user" "type": "user"
} }