Re: Controlling access at table row level

2015-11-19 Thread Steve West
I've followed up the suggestions given here but am still struggling with this problem. My table rows are marked as 'public' or 'private' and the suggested approaches (and others I could think of) could certainly control access in such a way that logged-in users could access the whole table and

Re: Controlling access at table row level

2015-11-06 Thread Steve West
Thanks for the suggestions. I'll give them a try. Cheers Steve -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To

Re: Controlling access at table row level

2015-11-05 Thread Jani Tiainen
Django has foundation for object level (row level) perms: https://docs.djangoproject.com/en/1.8/topics/auth/customizing/#handling-object-permissions So basically you just check: current_user.has_perm('permname', obj) For a full list of methods you can check:

Re: Controlling access at table row level

2015-11-05 Thread Mike Dewhirst
On 5/11/2015 9:35 PM, Steve West wrote: Hi all I'm implementing a Django project in which individual table rows are marked as either private or public. Have you looked at https://github.com/django-guardian/django-guardian I need to be able to filter accesses to the tables in such a way that

Controlling access at table row level

2015-11-05 Thread Steve West
Hi all I'm implementing a Django project in which individual table rows are marked as either private or public. I need to be able to filter accesses to the tables in such a way that logged-in users can see everything, but other users only get visibility of the 'public' rows. My initial