Thanks for reply. So here is the requirement :-
I have an Admin (Admin is a role). & under Admin there are 5 users. All users(same role as Admin) have different permissions. Those users can be differentiated by their permissions to perform tasks. Admin need to assign different different permissions to those 5 users. Here implementation of giving permissions to the role Admin is important. How to achieve this? An User has has_many relationship with Permission. In CanCan, we can only define role, but not permissions. On Tuesday, September 25, 2012 4:59:32 PM UTC+5:30, Kashif Umair Liaqat wrote: > > The purpose you want to achieve includes a huge number of if conditions. I > can give an example but better is that you provide some scenario. > > On Tue, Sep 25, 2012 at 4:26 PM, KUL KING <kulki...@gmail.com<javascript:> > > wrote: > >> Can you explain with an example so that I can better solve your problem? >> >> >> On Tue, Sep 25, 2012 at 1:40 PM, Avi <aavinas...@gmail.com >> <javascript:>>wrote: >> >>> There can be multiple permissions for a single role. How to handle that? >>> >>> >>> On Tuesday, September 25, 2012 2:06:07 PM UTC+5:30, Kashif Umair Liaqat >>> wrote: >>> >>>> You can set permissions for every role using CanCan. >>>> >>>> On Tue, Sep 25, 2012 at 1:26 PM, Avi <aavinas...@gmail.com> wrote: >>>> >>>>> Hello All, >>>>> >>>>> Is there any gem for Authorising Permission based on users ? >>>>> Like Cancan is used for role based authorisation. >>>>> >>>>> >>>>> >>>>> Thanks. >>>>> >>>>> -- >>>>> 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 rubyonra...@googlegroups.**com. >>>>> To unsubscribe from this group, send email to rubyonrails-ta...@** >>>>> googlegroups.com. >>>>> >>>>> To view this discussion on the web visit https://groups.google.com/d/* >>>>> *msg/rubyonrails-talk/-/**ZR6N9llpbrwJ<https://groups.google.com/d/msg/rubyonrails-talk/-/ZR6N9llpbrwJ> >>>>> . >>>>> For more options, visit >>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>>>> . >>>>> >>>>> >>>>> >>>> >>>> -- >>> 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 >>> rubyonra...@googlegroups.com<javascript:> >>> . >>> To unsubscribe from this group, send email to >>> rubyonrails-ta...@googlegroups.com <javascript:>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msg/rubyonrails-talk/-/eEPwtY50G_AJ. >>> >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> > -- 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. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/FmZYDlkVBFUJ. For more options, visit https://groups.google.com/groups/opt_out.