Re: displaying links based on permissions and object ownership

2009-08-20 Thread Streamweaver
Right. I think option A makes the most sense but I wanted to float the question here. I should probably pass the template something and rework this in my views. Thanks, - Scott On Aug 20, 12:28 pm, Javier Guerra wrote: > On Thu, Aug 20, 2009 at 11:00 AM, Streamweaver wrote: > > For permissio

displaying links based on permissions and object ownership

2009-08-20 Thread Streamweaver
I'm having a bit of confusion as to how to best approach the display of edit/delete/create links in my templates as my application needs this to be based on group permissions OR cascading object owenership. The situation is I have two models with a FK relationship and each has a method to check i

Re: displaying links based on permissions and object ownership

2009-08-20 Thread Javier Guerra
On Thu, Aug 20, 2009 at 11:00 AM, Streamweaver wrote: > For permission checking in my views this was pretty straight forward. > I created a decorator called has_perm_or_owner that checks for > particular permissions or if a user is an object owner. > > My question is how do I handle similar checks

displaying links based on permissions and object ownership

2009-08-20 Thread Streamweaver
I may have a similar post to this that was submitted accidentally as I fat-fingered a key. Sorry about that. I'm having a bit of confusion as to how to best approach the display of edit/delete/create links in my templates as my application needs this to be based on group permissions OR cascading