Enhancement: add observer groups to project manager projects, such that

anyone who is not in the observer group cannot view the project or see
it in the project list.  Some associated refactoring of project manager
permissions.  Schema change to accommodate the new data.
This commit is contained in:
Drake 2006-09-08 01:10:16 +00:00
parent a2521f0472
commit 8d27693394
4 changed files with 83 additions and 26 deletions

View file

@ -24,6 +24,7 @@ my $session = start(); # this line required
dropLineageInAssetIndex($session);
giveTasksMultipleResources($session);
giveTasksLagTime($session);
giveProjectsObserverGroup($session);
finish($session); # this line required
@ -80,6 +81,16 @@ EOT
);
}
sub giveProjectsObserverGroup {
my $session = shift;
print "\tGiving projects observer groups.\n" unless $quiet;
$session->db->write($_) for(<<'EOT',
ALTER TABLE PM_project
ADD COLUMN projectObserver varchar(22) character set utf8 collate utf8_bin DEFAULT '7';
EOT
);
}
# ---- DO NOT EDIT BELOW THIS LINE ----
#-------------------------------------------------