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 post

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: https://docs.djangoproject.com/en/1

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

Re: Controlling access

2012-07-05 Thread Tom Evans
On Tue, Jul 3, 2012 at 6:39 PM, Larry Martell wrote: > I have a client that asked me to add some new functionality to their > app, and then they said 'This new functionality should be controlled > in Django admin so that only the admin user can see it.' Is there a > way to control this in Django a

Re: Controlling access

2012-07-04 Thread Melvyn Sopacua
On 3-7-2012 19:39, Larry Martell wrote: > I have a client that asked me to add some new functionality to their > app, and then they said 'This new functionality should be controlled > in Django admin so that only the admin user can see it.' Is there a > way to control this in Django admin? I know i

Re: Controlling access

2012-07-03 Thread Larry Martell
On Tue, Jul 3, 2012 at 12:31 PM, Larry Martell wrote: > On Tue, Jul 3, 2012 at 11:55 AM, Robert Steckroth > wrote: >> Django is a very open-ended framework. The admin system is built around >> developer/user customization. > > > Yes, I realize that. But I was asking if there was something that ju

Re: Controlling access

2012-07-03 Thread Larry Martell
On Tue, Jul 3, 2012 at 11:55 AM, Robert Steckroth wrote: > Django is a very open-ended framework. The admin system is built around > developer/user customization. Yes, I realize that. But I was asking if there was something that just worked (i.e. like foreign key references do). I don't think so

Re: Controlling access

2012-07-03 Thread Robert Steckroth
Django is a very open-ended framework. The admin system is built around developer/user customization. On Tue, Jul 3, 2012 at 1:51 PM, Larry Martell wrote: > On Tue, Jul 3, 2012 at 11:49 AM, Robert Steckroth > wrote: > > Yes, I have seen some very impressive admin media controls for websites >

Re: Controlling access

2012-07-03 Thread Larry Martell
On Tue, Jul 3, 2012 at 11:49 AM, Robert Steckroth wrote: > Yes, I have seen some very impressive admin media controls for websites with > larger projects > having wordpress like functionality. However, there are not easy or cheap to > make. > I recommend checking open-souce projects for a good sta

Re: Controlling access

2012-07-03 Thread Robert Steckroth
Yes, I have seen some very impressive admin media controls for websites with larger projects having wordpress like functionality. However, there are not easy or cheap to make. I recommend checking open-souce projects for a good start. On Tue, Jul 3, 2012 at 1:39 PM, Larry Martell wrote: > I have

Re: Controlling access to objects

2010-06-12 Thread Wiiboy
Thanks Dan. I also found this: http://goo.gl/l2IW -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@google

Re: Controlling access to objects

2010-06-12 Thread Dan Harris
This article might help you out: http://djangoadvent.com/1.2/object-permissions/ Cheers, Dan Harris dih0...@gmail.com On Jun 11, 11:46 pm, Wiiboy wrote: > Hi guys, > I don't know whether the built-in permissions system would be > appropriate here, but I want to control access to objects in one