mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 05:34:48 +02:00
parent
1c8531fc0d
commit
e6159ca86a
@ -209,8 +209,7 @@ Available permissions for specific URL endpoints:
|
|||||||
objects/delete/<type> | /v1/objects | Yes
|
objects/delete/<type> | /v1/objects | Yes
|
||||||
status/query/<type> | /v1/status | Yes
|
status/query/<type> | /v1/status | Yes
|
||||||
events/<type> | /v1/events | No
|
events/<type> | /v1/events | No
|
||||||
console/execute-script | /v1/console | No
|
console | /v1/console | No
|
||||||
console/auto-complete-script | /v1/console | No
|
|
||||||
|
|
||||||
The required actions or types can be replaced by using a wildcard match ("*").
|
The required actions or types can be replaced by using a wildcard match ("*").
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ bool ConsoleHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& reques
|
|||||||
|
|
||||||
String methodName = request.RequestUrl->GetPath()[2];
|
String methodName = request.RequestUrl->GetPath()[2];
|
||||||
|
|
||||||
String permission = "console/" + methodName;
|
String permission = "console";
|
||||||
FilterUtility::CheckPermission(user, permission);
|
FilterUtility::CheckPermission(user, permission);
|
||||||
|
|
||||||
String session = HttpUtility::GetLastParameter(params, "session");
|
String session = HttpUtility::GetLastParameter(params, "session");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user