تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1827 أدوات العرض

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
مارس 24
3701