fix: [sharingrGroup:delete] Missing params variable

pull/93/head
Sami Mokaddem 2022-03-01 14:08:16 +01:00
parent f8c8bbcb0b
commit 5fa0280f15
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 0 deletions

View File

@ -122,6 +122,7 @@ class SharingGroupsController extends AppController
public function delete($id)
{
$currentUser = $this->ACL->getUser();
$params = [];
if (empty($currentUser['role']['perm_admin'])) {
$params['conditions'] = ['organisation_id' => $currentUser['organisation_id']];
}