Ruby on Rails Thursday, June 28, 2012

I don't know if this is the correct way to do but you can add an "is_blocked" field in the user table whose default value is false. Then you can add a before_filter in the controller which validates the above field.

On Thu, Jun 28, 2012 at 1:05 PM, Tushar Gandhi <lists@ruby-forum.com> wrote:
Hi,
I have a problem with blocking user as follows:-

We have a Admin Panel from where Admin can block the user which is
working fine.
Suppose the user "test@abc.com" is login and he is doing spam on our
site. Then Admin has decided to block that user. Admin blocks that user
but the user hasn't logged out yet due to that he still can do Spam the
site.

How can I fix this? I do not want to add any filter for each request.

Is it possible to get the session of that spam user and then reset that?

Thanks

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.




--
Thanks, 
Aash

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

No comments:

Post a Comment