Hi
  Mine is a sass model application. Various companies can register. Each
company has there own admin and ordinary staff and respective actions
etc. I have implemented this with proper privileges,permissions. This is
the way till I could manage. My new requirement is a super admin (he can
do functionality to any companies. For an example, manually activate
account company1's admin user)
    My question is what approach should I take to implement this?
1) Implement all functionalities of this super admin to a super admin
name space. If I follow this approach will there be a lot of code
duplication?

2) Treat this super admin as another system user (For example my
existing user types are company_admin, staff) and give him privilege and
permissions to the required actions.

   This two ways come into my mind. Is there any other approaches?
Please give me some insights on this

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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to