Skip to content
Snippets Groups Projects
  • Thibault Delavallée's avatar
    9a0267ee
    [FIX] website_slides: do not display links to unviewable slides · 9a0267ee
    Thibault Delavallée authored
    
    Channel allow to browse slides and a list of available slide is displayed
    as a left panel in the eLearning frontend. Even slides current user
    cannot see are displayed in order to give some information about course
    content. Accessible slides are clickable, other slides should be
    displayed as strings. However due to some sudo when computing slide
    informations all links are set as clickable.
    
    There is no security issue as when being redirected to a slide the
    user cannot access there is an acl error. However he should not have
    the links displayed, just strings. This commit fixes that behavior.
    
    closes odoo/odoo#42338
    
    X-original-commit: 04a957bb
    Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
    9a0267ee
    History
    [FIX] website_slides: do not display links to unviewable slides
    Thibault Delavallée authored
    
    Channel allow to browse slides and a list of available slide is displayed
    as a left panel in the eLearning frontend. Even slides current user
    cannot see are displayed in order to give some information about course
    content. Accessible slides are clickable, other slides should be
    displayed as strings. However due to some sudo when computing slide
    informations all links are set as clickable.
    
    There is no security issue as when being redirected to a slide the
    user cannot access there is an acl error. However he should not have
    the links displayed, just strings. This commit fixes that behavior.
    
    closes odoo/odoo#42338
    
    X-original-commit: 04a957bb
    Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>