db63c03af9932ae4d9b786620e88e62ce938589a
unauthorized course content Display a user-friendly error message when a user access an unauthorized course content. Specifications: When a non-authorized course content is accessed, instead of a 403 error page, redirect to the course page with a small notification saying "You need to join this course to access ContentName" Technical remarks: As the slide URL may lead to a 403 if the user has not access to the course and we didn't want to change that route, we have decided to share URL with a specific route when the resource is protected (is_preview = False): slides/slide/<int:slide_id>/share To make available that new URL in the templates and to the client, a computed field website_share_url has been added to the channel and slide model. Note that when checking the access rule, a MissingError can be triggered if for example the content has been deleted. In that case the user will be redirected to a 404 and 2 reads are performed but the code is more generic. Task 2742087 closes odoo/odoo#83935 Related: odoo/upgrade#3280 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%