Changeset 583
- Timestamp:
- 01/12/10 15:02:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller.pm
r573 r583 24 24 my ( $self, $c ) = @_; 25 25 26 if (!$c->user_exists) { 27 if ($c->req->path ne 'login') { 28 $c->forward('/login'); 29 } 30 } else { 31 $c->model('Accounts')->db->connect($c->user->{username}, 32 $c->user->{password}); 33 } 34 26 35 my $menu = ''; 27 36 my @menus = ( … … 47 56 } 48 57 $c->stash->{mainmenu} = $menu; 49 if (!$c->user_exists) {50 if ($c->req->path ne 'login') {51 $c->forward('/login');52 }53 } else {54 $c->model('Accounts')->db->connect($c->user->{username},55 $c->user->{password});56 }57 58 } 58 59 … … 67 68 $c->forward($c->view('TT')); 68 69 $c->model('Accounts')->db->rollback; 69 if (my $sync = $c->model('Accounts')->sync) { 70 # $sync->process; 71 } 70 $c->model('Accounts')->call_batch_sync; 72 71 } 73 72
Note: See TracChangeset
for help on using the changeset viewer.