diff options
author | Michael Scherer <misc@mageia.org> | 2011-07-17 17:38:02 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-07-17 17:38:02 +0000 |
commit | 039141422618e42f298df13a4d739f2e3d92b2a4 (patch) | |
tree | 98c155192aa348121814c8088cad79ea9a4e6eaa /lib/CatDap/Controller | |
parent | 1c02ea0ed4df446a242938ae0d0ae82d7588cb05 (diff) | |
download | identity-039141422618e42f298df13a4d739f2e3d92b2a4.tar identity-039141422618e42f298df13a4d739f2e3d92b2a4.tar.gz identity-039141422618e42f298df13a4d739f2e3d92b2a4.tar.bz2 identity-039141422618e42f298df13a4d739f2e3d92b2a4.tar.xz identity-039141422618e42f298df13a4d739f2e3d92b2a4.zip |
add a array to store who was promoted, to pass to template
Diffstat (limited to 'lib/CatDap/Controller')
-rw-r--r-- | lib/CatDap/Controller/admin.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CatDap/Controller/admin.pm b/lib/CatDap/Controller/admin.pm index 6c93212..352c3b1 100644 --- a/lib/CatDap/Controller/admin.pm +++ b/lib/CatDap/Controller/admin.pm @@ -163,6 +163,7 @@ sub account_promote : Local { $c->assert_user_roles('Account Admins'); $c->stash( subpages => gensubpages('account') ); my @errors; + my @promoted; if ( defined $c->req->param('gid') and defined $c->req->param('username') ) { my $gid = $c->req->param('gid'); @@ -206,6 +207,8 @@ sub account_promote : Local { $idpool->replace( uidNumber => $uidnum ); $mesg = $idpool->update; $c->log->info("ERROR IdPool could not be reset to $uidnum: ", $mesg->error) if $mesg->code; + } else { + push @promoted, $uid; } } } @@ -228,6 +231,7 @@ sub account_promote : Local { my @groups = $mesg->entries; $c->stash( groups => \@groups ); $c->stash( errors => \@errors ); + $c->stash( promoted => \@promoted ); } sub account_modify : Local { |