diff --git a/tbsetup/exports_setup.in b/tbsetup/exports_setup.in index cbe17a405de051be12bc1026b4e56d69eb137125..e0a0b05d744a44f0ce943b1b84be04872b47f954 100644 --- a/tbsetup/exports_setup.in +++ b/tbsetup/exports_setup.in @@ -263,7 +263,9 @@ if ($WITHZFS && $ZFS_NOEXPORT) { "left join users as u on u.uid_idx=s.uid_idx ". "left join group_membership as m on ". " m.uid_idx=u.uid_idx and m.pid=m.gid ". + "left join projects as p on p.pid=m.pid ". "where u.status='" . USERSTATUS_ACTIVE() . "' and ". + " p.approved=1 and ". " (((UNIX_TIMESTAMP(now()) - ". " UNIX_TIMESTAMP(s.last_activity)) <= $limit) or ". " ((UNIX_TIMESTAMP(now()) - ".