in Education by
I use odoo as a system in our company and want to use the website for internal news and informations. However the public should not see the website - only logged in users should! Viewers who aren't logged in should be redirected to the login screen. Is that possible and how could I do it? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
When you define the route with @http.route you have a parameter "auth", where you define that. From the odoo documentation: auth – The type of authentication method, can on of the following: user: The user must be authenticated and the current request will perform using the rights of the user. public: The user may or may not be authenticated. If she isn’t, the current request will perform using the shared Public user. none: The method is always active, even if there is no database. Mainly used by the framework and authentication modules. There request code will not have any facilities to access the database nor have any configuration indicating the current database nor the current user. Have a look to https://www.odoo.com/documentation/12.0/reference/http.html

Related questions

0 votes
    How to get the UserID of all the currently logged in users using Apex code?...
asked Nov 11, 2020 in Technology by JackTerrance
0 votes
    Which type of caching can be used to cache the contest registration page in a website, to reduce the time taken to ... Cache (b)Data Cache (c)Browser Cache (d)Application Cache...
asked Oct 6, 2020 in Technology by JackTerrance
0 votes
    Auto-configuration report can be logged to the console by enabling debug mode while starting the application. A. True B. False...
asked Nov 8, 2022 in Education by JackTerrance
0 votes
    I have some website which requires a logon and shows sensitive information. The person goes to the page, is ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 24, 2022 in Education by JackTerrance
0 votes
    I need to display a login link and once they are logged in i need the link to display as log off ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    _______ of information means, only authorised users are capable of accessing the information. (a) Confidentiality (b) ... questions and answers pdf, mcq on Cyber Security pdf,...
asked Nov 5, 2021 in Education by JackTerrance
0 votes
    ______________ requires that data should be made available to only authorized users. (a) Data integrity (b ... Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    If I want to hold a Teams meeting and invite “guests,” what happens if I select that only specific domains ... still able to join the Teams meeting from via a link?...
asked Mar 10, 2021 in Technology by JackTerrance
0 votes
    So, I'm setting a cookie that should expire. However, I want this to work around the world. So I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 12, 2022 in Education by JackTerrance
0 votes
    I'm building an app using Visual Studio 2010. I can run my asp.net website from my computer (by ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 4, 2022 in Education by JackTerrance
0 votes
    Im new to ofbiz.Tell me How to create a new website using ofbiz for getting the some input from ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 26, 2022 in Education by JackTerrance
0 votes
    webbrowser.open('https://api.WhatsApp.com/send?phone=number') I want to send WhatsApp messages to numbers without ... in this link. Select the correct answer from above options...
asked Jan 19, 2022 in Education by JackTerrance
0 votes
    Explain how you can be stop your website getting hacked?...
asked Feb 20, 2021 by JackTerrance
0 votes
    How can you identify the keywords that are sending paid traffic to my website?...
asked Oct 3, 2020 in Technology by JackTerrance
0 votes
    How can you identify the keywords that are sending paid traffic to my website?...
asked Oct 3, 2020 in Technology by JackTerrance
...