Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-stable
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
emulab
emulab-stable
Commits
164ae077
Commit
164ae077
authored
Oct 30, 2014
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not generate project email lists for nonlocal projects.
Eventually I am going to turn this off for all projects.
parent
7c5c1af0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
db/genelists.in
db/genelists.in
+13
-8
No files found.
db/genelists.in
View file @
164ae077
#!/usr/bin/perl -w
T
#!/usr/bin/perl -w
#
# Copyright (c) 2000-201
3
University of Utah and the Flux Group.
# Copyright (c) 2000-201
4
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -288,16 +288,21 @@ if ($all || defined($user) || defined($pid)) {
if
(
$all
)
{
$query
=
"
select g.pid,g.gid from groups as g
"
.
"
left join projects as p on p.pid=g.pid
"
.
"
where p.approved=1
";
$query
.=
"
order by g.pid,g.gid
";
"
where p.approved=1
and p.nonlocal_id is null
"
.
"
order by g.pid,g.gid
";
}
elsif
(
$user
)
{
$query
=
"
select pid,gid from group_membership where uid='
$user
'
";
$query
.=
"
order by pid,gid
";
$query
=
"
select g.pid,g.gid from group_membership as g
"
.
"
left join projects as p on p.pid=g.pid
"
.
"
where g.uid='
$user
' and p.approved=1 and
"
.
"
p.nonlocal_id is null
"
.
"
order by g.pid,g.gid
";
}
else
{
$query
=
"
select pid,gid from groups where pid='
$pid
'
";
$query
.=
"
order by pid,gid
";
$query
=
"
select g.pid,g.gid from groups as g
"
.
"
left join projects as p on p.pid=g.pid
"
.
"
where p.approved=1 and p.nonlocal_id is null
"
.
"
order by g.pid,g.gid
";
}
if
(
!
(
$query_result
=
DBQuery
(
$query
)))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment