1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-01-02 03:38:23 +02:00

[Web] protect /get/identity-provider

This commit is contained in:
FreddleSpl0it 2024-12-02 10:24:15 +01:00
parent ccc8595665
commit 6fa1c9f63d
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5

View File

@ -1707,8 +1707,13 @@ if (isset($_GET['query'])) {
if ($score)
$score = array("score" => preg_replace("/\s+/", "", $score));
process_get_return($score);
case "identity_provider":
process_get_return($iam_settings);
break;
case "identity-provider":
if($_SESSION['mailcow_cc_role'] === 'admin') {
process_get_return($iam_settings);
} else {
process_get_return(null);
}
break;
break;
// return no route found if no case is matched
@ -2086,7 +2091,6 @@ if (isset($_GET['query'])) {
break;
case "cors":
process_edit_return(cors('edit', $attr));
case "identity_provider":
case "identity-provider":
process_edit_return(identity_provider('edit', $attr));
break;