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
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 post
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:
https://docs.djangoproject.com/en/1
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
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 thoughts
5 matches
Mail list logo