Commit 4f938478 authored by Mike Hibler's avatar Mike Hibler

Only export approved project dirs to boss on behalf of users.

The /proj and /groups directories don't exist for unapproved projects
and that was causing mountd to get all uppity.
parent 98415652
......@@ -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()) - ".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment