fix: ZFS subpools show up and can be selected in the new permissions tool

This commit is contained in:
Tom Mortensen
2024-04-09 14:35:05 -07:00
parent 9d583f63f0
commit 37b41950bb

View File

@@ -18,8 +18,7 @@ Tag="folder-o"
<?
$width = [166,300];
function data_disks($disk) {
global $pools;
return (_var($disk,'type')=="Data" || (_var($disk,'type')=="Cache" && in_array(_var($disk,'name'),$pools))) && _var($disk,'status')=='DISK_OK';
return in_array(_var($disk,'type'),['Data','Cache']) && array_key_exists('exportable',$disk) && _var($disk,'fsStatus')=='Mounted';
}
?>
<script>