summaryrefslogtreecommitdiff
path: root/doc/_extensions/github_link.py
diff options
context:
space:
mode:
authorRobot Odoo <xmo+roboto@odoo.com>2019-02-19 10:20:00 +0100
committerGitHub <noreply@github.com>2019-02-19 10:20:00 +0100
commit83e6faf9a227686b7abe418aadb3bbf9d96955c2 (patch)
tree2d1f7f42e18e79e719191edc8bc3047c5db5563d /doc/_extensions/github_link.py
parentd56402a5471a1efbda92a1dd2babf8a7d0cd7de0 (diff)
parent3c88e75c86c4cba56ed8ad4192ad32cc3d728bb7 (diff)
[FIX] website_slides: hide publish widget if user cannot publish
Purpose ======= The "publish/unpublish" widget is always shown on slide.channel/slide.slide for a website_publisher user even if he's not allowed to manage the publishing of the channel (see slide.channel.can_publish field). This commit will hide the widget on both the slide.channel and the slide.slide frontend pages if the user doesn't have the right to publish/unpublish. A generic solution implemented directly in the publish mixin has been chosen to ease understanding and allow easy reuse in other applications. Commit linked to task ID 1902304 (main elearning task). closes odoo/odoo#31187
Diffstat (limited to 'doc/_extensions/github_link.py')
0 files changed, 0 insertions, 0 deletions