Created
January 10, 2011 21:14
-
-
Save LTe/773487 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dd780fc2 (johan pretorius 2010-10-04 12:13:12 +0200 148) if (admin? or current_user.tf_admin?) and @channel_user | |
4315fa78 (johan pretorius 2010-01-24 20:00:54 +0200 149) redirect_to :controller => :channel_users, :action => 'index' | |
dd780fc2 (johan pretorius 2010-10-04 12:13:12 +0200 150) elsif (admin? or current_user.tf_admin?) | |
dd780fc2 (johan pretorius 2010-10-04 12:13:12 +0200 151) redirect_to :controller => :accounts, :action => 'show' | |
bea746b9 (Johannes Fahrenkrug 2009-03-27 16:39:08 +0100 152) else | |
bea746b9 (Johannes Fahrenkrug 2009-03-27 16:39:08 +0100 153) redirect_to :action => 'edit', :id => @user.id | |
bea746b9 (Johannes Fahrenkrug 2009-03-27 16:39:08 +0100 154) end | |
bea746b9 (Johannes Fahrenkrug 2009-03-27 16:39:08 +0100 155) else | |
bea746b9 (Johannes Fahrenkrug 2009-03-27 16:39:08 +0100 156) render :action => 'edit' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment