From aa4544617899edcfb3907fac468c93a6da807cc5 Mon Sep 17 00:00:00 2001 From: nuxsmin Date: Tue, 13 Jun 2017 17:15:54 +0200 Subject: [PATCH] * [FIX] Related #640. Set required auth for addAccount action because the auth wasn't being triggered. Thanks to @cbrassel for the feedback. --- inc/SP/Api/SyspassApi.class.php | 3 ++- inc/SP/Util/Util.class.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/SP/Api/SyspassApi.class.php b/inc/SP/Api/SyspassApi.class.php index 9b5935e1..0172f1fd 100644 --- a/inc/SP/Api/SyspassApi.class.php +++ b/inc/SP/Api/SyspassApi.class.php @@ -554,6 +554,7 @@ class SyspassApi extends ApiBase */ protected function passIsNeeded() { - return $this->actionId === ActionsInterface::ACTION_ACC_VIEW_PASS; + return $this->actionId === ActionsInterface::ACTION_ACC_VIEW_PASS + || $this->actionId === ActionsInterface::ACTION_ACC_NEW; } } \ No newline at end of file diff --git a/inc/SP/Util/Util.class.php b/inc/SP/Util/Util.class.php index 88aac2db..517ac29c 100644 --- a/inc/SP/Util/Util.class.php +++ b/inc/SP/Util/Util.class.php @@ -407,7 +407,7 @@ class Util */ public static function getVersion($retBuild = false, $normalized = false) { - $build = 17061301; + $build = 17061302; $version = [2, 1, 11]; if ($normalized === true) {