Re: Make an element on a page visible only to logged in users

2018-08-22 Thread Olivier Pons
Hi, I disagree with Mike Dewhirst answer, here's mine. The simplest way is in the template, to see if it's logged in: {% if user.is_authenticated %} Then maybe a much more powerful way is to write your right management this way: first you write what you need beginning with "has_right_" like

Re: Make an element on a page visible only to logged in users

2018-08-21 Thread Mike Dewhirst
On 22/08/2018 9:05 AM, chanman wrote: I want to have a page look different for users who are logged in and those who aren't. This is the "normal" way to do things For users that are signed in the page will have a sidebar with account management options. For users who aren't signed in, this si

Make an element on a page visible only to logged in users

2018-08-21 Thread chanman
I want to have a page look different for users who are logged in and those who aren't. For users that are signed in the page will have a sidebar with account management options. For users who aren't signed in, this sidebar shouldn't show up. The most obvious way to do this would be to have a co