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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ZR6N9llpbrwJ. For more options, visit https://groups.google.com/groups/opt_out.
You can set permissions for every role using CanCan. On Tue, Sep 25, 2012 at 1:26 PM, Avi <aavinash.behera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/ZR6N9llpbrwJ. > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>>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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:> >> . >> To unsubscribe from this group, send email to >> rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/rubyonrails-talk/-/ZR6N9llpbrwJ. >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Hi, Iam using the rolify gem in my project and found it to be very useful check this out http://eppo.github.com/rolify/ Thanks, On Tuesday, September 25, 2012 1:56:50 PM UTC+5:30, Avi 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/VrREp-xI69AJ. For more options, visit https://groups.google.com/groups/opt_out.
Yes, this makes some sense. But this is helpful, when you have only one user per role. Suppose you are an admin. & under Admin there are 5 sub-admins. All sub-admins have different permissions, but role is still the Admin. Admin need to assign different different permissions to those 5 sub-admins. I guess this can''t be achieved through CanCan because this is a Role-based authorisation. On Tuesday, September 25, 2012 2:14:40 PM UTC+5:30, Rajesh reddy wrote:> > Hi, > > Iam using the rolify gem in my project and found it to be very useful > check this out http://eppo.github.com/rolify/ > > > Thanks, > > On Tuesday, September 25, 2012 1:56:50 PM UTC+5:30, Avi 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/85XF_jd1j_UJ. For more options, visit https://groups.google.com/groups/opt_out.
Can you explain with an example so that I can better solve your problem? On Tue, Sep 25, 2012 at 1:40 PM, Avi <aavinash.behera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
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 <kulking370-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 <aavinash.behera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:> >>> . >>> To unsubscribe from this group, send email to >>> rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
You can have 5 different roles with different permissions you want to assign each of the admin. On Tue, Sep 25, 2012 at 4:42 PM, Avi <aavinash.behera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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/ >>>>>> **ms**g/rubyonrails-talk/-/**ZR6N9llpb**rwJ<https://groups.google.com/d/msg/rubyonrails-talk/-/ZR6N9llpbrwJ> >>>>>> . >>>>>> For more options, visit https://groups.google.com/**grou**ps/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. >>>> 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/-/**eEPwtY50G_AJ<https://groups.google.com/d/msg/rubyonrails-talk/-/eEPwtY50G_AJ> >>>> . >>>> >>>> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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. > > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Well, as per the requirement, the role is one- i.e. Admin. But permissions need to be different for admin users. On Tuesday, September 25, 2012 5:59:19 PM UTC+5:30, Kashif Umair Liaqat wrote:> > You can have 5 different roles with different permissions you want to > assign each of the admin. > > On Tue, Sep 25, 2012 at 4:42 PM, Avi <aavinas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>>wrote: > >> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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/**ms**g/rubyonrails-talk/-/**ZR6N9llpb** >>>>>>> rwJ<https://groups.google.com/d/msg/rubyonrails-talk/-/ZR6N9llpbrwJ> >>>>>>> . >>>>>>> For more options, visit https://groups.google.com/**grou**ps/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. >>>>> 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/-/**eEPwtY50G_AJ<https://groups.google.com/d/msg/rubyonrails-talk/-/eEPwtY50G_AJ> >>>>> . >>>>> >>>>> 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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:> >> . >> To unsubscribe from this group, send email to >> rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. >> 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. >> >> >> > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/A4HWe7a5_kEJ. For more options, visit https://groups.google.com/groups/opt_out.
It doesn''t make sense that a role has different permissions. You can create more roles and assign them different permissions. The purpose you are trying to achieve will always require different roles. On Tue, Sep 25, 2012 at 5:54 PM, Avi <aavinash.behera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Well, as per the requirement, the role is one- i.e. Admin. But > permissions need to be different for admin users. > > > > On Tuesday, September 25, 2012 5:59:19 PM UTC+5:30, Kashif Umair Liaqat > wrote: > >> You can have 5 different roles with different permissions you want to >> assign each of the admin. >> >> On Tue, Sep 25, 2012 at 4:42 PM, Avi <aavinas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >>> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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/**ms****g/rubyonrails-talk/-/** >>>>>>>> ZR6N9llpb****rwJ<https://groups.google.com/d/msg/rubyonrails-talk/-/ZR6N9llpbrwJ> >>>>>>>> . >>>>>>>> For more options, visit https://groups.google.com/**grou**** >>>>>>>> ps/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. >>>>>> 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/ >>>>>> **ms**g/rubyonrails-talk/-/**eEPwtY50G**_AJ<https://groups.google.com/d/msg/rubyonrails-talk/-/eEPwtY50G_AJ> >>>>>> . >>>>>> >>>>>> For more options, visit https://groups.google.com/**grou**ps/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. >>> 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/-/**FmZYDlkVBFUJ<https://groups.google.com/d/msg/rubyonrails-talk/-/FmZYDlkVBFUJ> >>> . >>> >>> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/A4HWe7a5_kEJ. > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.