mirror of https://github.com/Icinga/icinga2.git
parent
1c8531fc0d
commit
e6159ca86a
|
@ -209,8 +209,7 @@ Available permissions for specific URL endpoints:
|
|||
objects/delete/<type> | /v1/objects | Yes
|
||||
status/query/<type> | /v1/status | Yes
|
||||
events/<type> | /v1/events | No
|
||||
console/execute-script | /v1/console | No
|
||||
console/auto-complete-script | /v1/console | No
|
||||
console | /v1/console | No
|
||||
|
||||
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 permission = "console/" + methodName;
|
||||
String permission = "console";
|
||||
FilterUtility::CheckPermission(user, permission);
|
||||
|
||||
String session = HttpUtility::GetLastParameter(params, "session");
|
||||
|
|
Loading…
Reference in New Issue