[FIX] project: access rights and followers
For privacy_visibility 'followers' or 'portal', the user should be follower of the project (not the task). Remove public access to portal task Fixes #2372 If no project on the task (or other rule), an employee (not a portal) can access if is follower of the task. Follower rule is not enough as a user creating a rule will subscribe to the rule but to subscribe to record, the user should have access to it in the first place. To make sure the snake does not bit its tail, fallback to give access on task where the user is reponsible (user_id = user.id). Fixes #139 Adapted the tests to the new behaviour (removed not relevant and added some on creation)
Showing
- addons/portal_project/security/portal_security.xml 38 additions, 21 deletionsaddons/portal_project/security/portal_security.xml
- addons/portal_project/tests/test_access_rights.py 26 additions, 17 deletionsaddons/portal_project/tests/test_access_rights.py
- addons/project/security/project_security.xml 12 additions, 8 deletionsaddons/project/security/project_security.xml
Please register or sign in to comment