Re: Role based access

2020-01-19 Thread Doddahulugappa.B
has to see only >> >> >> >> name >> >> age >> >> department >> >> user(manytomanyfiled) >> >> xyz >> >> 23 >> >> cs >> >> user1 >> >> abc >> >> 24 >> >> ec >>

Re: Role based access

2020-01-19 Thread maninder singh Kumar
gt; > > And if user2 login means > > name > > age > > department > > user(manytomanyfiled) > > pqr > > 25 > > me > > user2 > > > > > > Kindly let me know below explanation is serving my purpose? > > > > Best Regards, >

Re: Role based access

2020-01-19 Thread Doddahulugappa.B
user1 >> >> abc >> >> 24 >> >> ec >> >> user1 >> >> >> >> And if user2 login means >> >> name >> >> age >> >> department >> >> user(manytomanyfiled) >> >> pqr >> >>

Re: Role based access

2020-01-19 Thread maninder singh Kumar
> > department > > user(manytomanyfiled) > > pqr > > 25 > > me > > user2 > > > > > > Kindly let me know below explanation is serving my purpose? > > > > Best Regards, > > HULI > > > > *From: *maninder singh Kumar

RE: Role based access

2020-01-19 Thread HULUGESH B
department user(manytomanyfiled) pqr 25 me user2 Kindly let me know below explanation is serving my purpose? Best Regards, HULI From: maninder singh Kumar Sent: Sunday, January 19, 2020 2:46 PM To: django-users@googlegroups.com Subject: Re: Role based access Django has an authentication model of : 1

Re: Role based access

2020-01-19 Thread maninder singh Kumar
Django has an authentication model of : 1. Creating users 2. Assigning them permissions or group permissions Use Authenticate() to authenticate users. Based on the assigned permissions they will have access to parts of your site. Basically you create views and the objects in the views are

Re: Role based access

2020-01-19 Thread Doddahulugappa.B
Thank you for your response. Can you please Explain me how to do that.. On Sun, Jan 19, 2020, 2:09 PM maninder singh Kumar < maninder.s.ku...@gmail.com> wrote: > Could it be that there is a user from each department and each user in a > department has a role ? > > > [image: --] > > Maninder

Re: Role based access

2020-01-19 Thread maninder singh Kumar
Could it be that there is a user from each department and each user in a department has a role ? [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Sun, Jan 19, 2020 at 3:04 PM Doddahulugappa.B wrote: > Hi team, > >

Re: Role based access

2020-01-19 Thread Nitin Kalmaste
You can assign django groups from user model as department and give special permission to that group On Sun 19 Jan, 2020, 3:04 PM Doddahulugappa.B, wrote: > Hi team, > > How to make role based access in django. For ex. > > If employee names and their department in one table. > > And also we

Re: Role Based Access Control for different API methods in Django REST Framework

2019-09-07 Thread gulo loki
in your viewset class,you could rewrite get_permissions to set which permissions you want on action def get_permissions(self, *args, **kwargs): if self.action == 'create': self.permission_classes = (AllowAny,) elif self .action == 'login':