Split filter drawer contracts

This commit is contained in:
2026-03-19 18:41:08 +01:00
parent 0f8fff8daf
commit 98520dcc6a
5 changed files with 174 additions and 2 deletions

View File

@@ -115,4 +115,13 @@ class PermissionRepository implements PermissionRepositoryInterface
$result = DB::delete('delete from permissions where id = ?', (string) $id);
return (bool) $result;
}
public function listSystem(): array
{
$rows = DB::select(
'select id, `key`, description, active, is_system, created from permissions where is_system = 1 order by `key` asc'
);
return RepositoryArrayHelper::unwrapList($rows, 'permissions');
}
}