跳至內容
選單
此問題已被標幟
1 回覆
1848 瀏覽次數

How to limit content of a website page to public user?


頭像
捨棄
作者 最佳答案

If you want to limit content of a website page to public user you can use t-if="user_id._is_public()"


As an example:


If user is logged in, he sees "Welcome!"

If user is not logged in, he sees "You are not logged in!"
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
3月 24
3729