Permalink
Browse files

not show register view if the user is logged in

  • Loading branch information...
1 parent 222cecf commit 5ea0fef1a816d78026fe63de68ed00b611b54655 @juanramon juanramon committed Apr 24, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 register.php
View
@@ -32,6 +32,10 @@ function __construct()
osc_add_flash_error_message( _m('User registration is not enabled') ) ;
$this->redirectTo( osc_base_url() ) ;
}
+
+ if( osc_is_web_user_logged_in() ) {
+ $this->redirectTo( osc_base_url() ) ;
+ }
}
function doModel()

0 comments on commit 5ea0fef

Please sign in to comment.