diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 5ada3bd..33298e1 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -77,12 +77,12 @@ "source": { "type": "git", "url": "https://github.com/RRZE-Webteam/FAU-Studium-Common.git", - "reference": "029960b410cedc67b26ae660fec00e58ec423191" + "reference": "6778151d29312f720e02692dfdb6f314b62c0863" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/RRZE-Webteam/FAU-Studium-Common/zipball/029960b410cedc67b26ae660fec00e58ec423191", - "reference": "029960b410cedc67b26ae660fec00e58ec423191", + "url": "https://api.github.com/repos/RRZE-Webteam/FAU-Studium-Common/zipball/6778151d29312f720e02692dfdb6f314b62c0863", + "reference": "6778151d29312f720e02692dfdb6f314b62c0863", "shasum": "" }, "require": { @@ -104,7 +104,7 @@ "suggest": { "inpsyde/modularity": "Modular PSR-11 implementation for WordPress Plugins, Themes or Libraries" }, - "time": "2023-07-18T14:30:35+00:00", + "time": "2023-08-02T13:58:54+00:00", "default-branch": true, "type": "library", "installation-source": "dist", diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index e3be61f..06296df 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => 'inpsyde/fau-degree-program-output', 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => '81e52de293d5dca8a4fce5dc2d668642a06b4a25', + 'reference' => 'e935e065596eca434afe04191245230bf745f49c', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -22,7 +22,7 @@ 'inpsyde/fau-degree-program-common' => array( 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => '029960b410cedc67b26ae660fec00e58ec423191', + 'reference' => '6778151d29312f720e02692dfdb6f314b62c0863', 'type' => 'library', 'install_path' => __DIR__ . '/../inpsyde/fau-degree-program-common', 'aliases' => array( @@ -33,7 +33,7 @@ 'inpsyde/fau-degree-program-output' => array( 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => '81e52de293d5dca8a4fce5dc2d668642a06b4a25', + 'reference' => 'e935e065596eca434afe04191245230bf745f49c', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), diff --git a/vendor/inpsyde/fau-degree-program-common/src/Infrastructure/Dashboard/AdminBar/AdminBarMenu.php b/vendor/inpsyde/fau-degree-program-common/src/Infrastructure/Dashboard/AdminBar/AdminBarMenu.php index d639d47..425a6a8 100644 --- a/vendor/inpsyde/fau-degree-program-common/src/Infrastructure/Dashboard/AdminBar/AdminBarMenu.php +++ b/vendor/inpsyde/fau-degree-program-common/src/Infrastructure/Dashboard/AdminBar/AdminBarMenu.php @@ -30,6 +30,10 @@ public function withMenuItem(MenuItem $item): self public function render(WP_Admin_Bar $adminBar): void { + if (! current_user_can('delete_users')) { + return; + } + if (count($this->menuItems) === 1) { $menuItem = $this->menuItems[0]; diff --git a/vendor/inpsyde/fau-degree-program-common/src/Infrastructure/Sanitizer/SerializedBlocksDegreeProgramSanitizer.php b/vendor/inpsyde/fau-degree-program-common/src/Infrastructure/Sanitizer/SerializedBlocksDegreeProgramSanitizer.php index 4bd96ab..351da1f 100644 --- a/vendor/inpsyde/fau-degree-program-common/src/Infrastructure/Sanitizer/SerializedBlocksDegreeProgramSanitizer.php +++ b/vendor/inpsyde/fau-degree-program-common/src/Infrastructure/Sanitizer/SerializedBlocksDegreeProgramSanitizer.php @@ -55,6 +55,9 @@ private function isValidBlock(array $block): bool }; } + /** + * @return non-empty-string + */ private function allowedShortcodeRegexpPattern(): string { return sprintf(