public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Updated require_activation before_filter to use active? boolean.
Michael Hartl (author)
Tue May 20 12:08:44 -0700 2008
commit  7d4b42f6ada449c44e5512e530a2489da5db8f0b
tree    1f816c92e63dbbd1c032864b3b11d4b1835a0fe5
parent  0d46a082c01a76101b227f208b4fcc5311963692
...
34
35
36
37
38
 
 
 
 
39
40
41
...
34
35
36
 
 
37
38
39
40
41
42
43
0
@@ -34,8 +34,10 @@ class ApplicationController < ActionController::Base
0
     end
0
   
0
     def require_activation
0
- if logged_in? and current_person.deactivated? and !current_person.admin?
0
- redirect_to logout_url
0
+ if logged_in?
0
+ unless current_person.active? or current_person.admin?
0
+ redirect_to logout_url
0
+ end
0
       end
0
     end
0
     

Comments

    No one has commented yet.