Files
odoo_source/addons/website_slides/security/ir.model.access.csv
T
Thibault Delavallée c273e89d55 [REF] website_slides: introduce slide / user relationship and use it for vote
Purpose of this commit is to store a relationship between slides and users.
Indeed starting from now we will track more user interaction with the slides
module.

In this commit we introduce a model that is used to populate and decorate
the relationship between slides and users, slide.users. From slides or users
point of view it behaves like a many2many. It can also be used to store
more information about the user interaction with the slide.

We use it here to store the user vote. Like and dislike are not static
counters anymore but computed fields based on user votes. It is implemented
as a tristate field.

As it is a technical model no access on slide.users is granted. Controllers
and methods grant access to the relationship in order to avoid information
lead and keep technical details private.

Future commits improving the eLearning use of slides will notably store
information about user having read the slide, taken a quizz or gaining
karma depending on some actions performed on the slide.

This commit is linked to task ID 1934488 and PR #30620 .
2019-01-29 09:24:48 +00:00

1.4 KiB

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_slide_slide_publicslide.slide.publicmodel_slide_slidebase.group_public1000
3access_slide_slide_portalslide.slide.portalmodel_slide_slidebase.group_portal1000
4access_slide_slide_userslide.slide.usermodel_slide_slidebase.group_user1111
5access_slide_users_allslide.users.allmodel_slide_users0000
6access_slide_users_systemslide.users.systemmodel_slide_usersbase.group_system1111
7access_slide_tag_publicslide.tag.publicmodel_slide_tagbase.group_public1000
8access_slide_tag_portalslide.tag.portalmodel_slide_tagbase.group_portal1000
9access_slide_tag_userslide.tag.usermodel_slide_tagbase.group_user1111
10access_slide_channel_publicslide.channel.publicmodel_slide_channelbase.group_public1000
11access_slide_channel_portalslide.channel.portalmodel_slide_channelbase.group_portal1000
12access_slide_channel_userslide.channel.usermodel_slide_channelbase.group_user1111
13access_slide_category_publicslide.category.publicmodel_slide_categorybase.group_public1000
14access_slide_category_portalslide.category.portalmodel_slide_categorybase.group_portal1000
15access_slide_category_userslide.category.usermodel_slide_categorybase.group_user1111
16access_slide_embed_allslide.embed.allmodel_slide_embed1000
17access_slide_embed_userslide.embed.usermodel_slide_embedbase.group_user1111