зеркало из https://github.com/nextcloud/deck.git
Unify params
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Родитель
1b4cf508e6
Коммит
7a77c04caf
|
@ -38,7 +38,7 @@ return [
|
|||
['name' => 'board#deleteUndo', 'url' => '/boards/{boardId}/deleteUndo', 'verb' => 'POST'],
|
||||
['name' => 'board#getUserPermissions', 'url' => '/boards/{boardId}/permissions', 'verb' => 'GET'],
|
||||
['name' => 'board#addAcl', 'url' => '/boards/{boardId}/acl', 'verb' => 'POST'],
|
||||
['name' => 'board#updateAcl', 'url' => '/boards/{boardId}/acl', 'verb' => 'PUT'],
|
||||
['name' => 'board#updateAcl', 'url' => '/boards/{boardId}/acl/{aclId}', 'verb' => 'PUT'],
|
||||
['name' => 'board#deleteAcl', 'url' => '/boards/{boardId}/acl/{aclId}', 'verb' => 'DELETE'],
|
||||
|
||||
// stacks
|
||||
|
|
|
@ -161,8 +161,8 @@ class BoardApiController extends ApiController {
|
|||
* @CORS
|
||||
* @NoCSRFRequired
|
||||
*/
|
||||
public function updateAcl($id, $permissionEdit, $permissionShare, $permissionManage) {
|
||||
$acl = $this->boardService->updateAcl($id, $permissionEdit, $permissionShare, $permissionManage);
|
||||
public function updateAcl($aclId, $permissionEdit, $permissionShare, $permissionManage) {
|
||||
$acl = $this->boardService->updateAcl($aclId, $permissionEdit, $permissionShare, $permissionManage);
|
||||
return new DataResponse($acl, HTTP::STATUS_OK);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче