fix: [sharingrGroup:delete] Missing params variable
parent
f8c8bbcb0b
commit
5fa0280f15
|
@ -122,6 +122,7 @@ class SharingGroupsController extends AppController
|
||||||
public function delete($id)
|
public function delete($id)
|
||||||
{
|
{
|
||||||
$currentUser = $this->ACL->getUser();
|
$currentUser = $this->ACL->getUser();
|
||||||
|
$params = [];
|
||||||
if (empty($currentUser['role']['perm_admin'])) {
|
if (empty($currentUser['role']['perm_admin'])) {
|
||||||
$params['conditions'] = ['organisation_id' => $currentUser['organisation_id']];
|
$params['conditions'] = ['organisation_id' => $currentUser['organisation_id']];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue