version stable 0.2.0

This commit is contained in:
mariano
2026-06-03 07:41:53 +02:00
parent c90506a25d
commit 7fb79c9552
8 changed files with 21 additions and 19 deletions
-2
View File
@@ -41,8 +41,6 @@ if (!$item || !$item->getFromDB($items_id)) {
Html::displayNotFoundError();
}
Session::checkCSRF();
if (isset($_POST['connect'])) {
if (!Profile::canCurrentUser(UPDATE) && !Profile::canCurrentUser(CREATE)) {
Html::displayRightError();
-1
View File
@@ -13,7 +13,6 @@ if (!Session::haveRight('config', UPDATE)) {
// Handle form submission
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['update'])) {
Session::checkCSRF();
Config::saveConfiguration($_POST);
Html::redirect($_SERVER['REQUEST_URI']);
}
-2
View File
@@ -19,8 +19,6 @@ if (!Profile::canCurrentUser(READ)) {
$server = new Server();
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
Session::checkCSRF();
if (isset($_POST['link_asset'])) {
$itemtype = (string) ($_POST['itemtype'] ?? '');
$items_id = (int) ($_POST['items_id'] ?? 0);
-4
View File
@@ -13,10 +13,6 @@ Html::header_nocache();
Session::checkLoginUser();
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
Session::checkCSRF();
}
if (!Session::haveRight('plugin_urbackup', READ)) {
echo json_encode(['success' => false, 'message' => __('No permission', 'urbackup')]);
exit;