Problem/Motivation
Social is planning to get rid of node grants and replace them with node query alters.
See PR: https://github.com/goalgorilla/open_social/pull/3961
Proposed resolution
Replace node grants with node query alters.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | social_course--3480856-11.patch | 3.81 KB | robertragas |
| #10 | social_course--3480856-10.patch | 17.65 KB | robertragas |
| #6 | social_course--3480856-2.patch | 9.5 KB | vnech |
| #5 | social_course--MR-71.diff | 9.08 KB | vnech |
Issue fork social_course-3480856
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
vnech commentedComment #4
vnech commentedComment #5
vnech commentedComment #6
vnech commentedComment #7
navneet0693 commentedComment #9
nkoporecPushed a new commit that needs review: https://git.drupalcode.org/project/social_course/-/merge_requests/71/dif...
The issue is that if a user is a verified user and a course leader, then he is able to create a section with a part. After that the user can no longer edit the 'Parts' section, as the error is thrown node:[id] cannot be referenced.
Comment #10
robertragas commentedComment #11
robertragas commentedAdded a new patch that is required on top. As with the new entity query access course_leader role cannot save sections that contains course_articles / course_videos that they are not the owner of.
The error itself is "node x cannot be referenced"
Comment #12
socialnicheguru commentedSo is the solution the MR and patches from #10, #11?
Update:
1. MR 71 and Patch 10 are essentially the same base
implementation
2. Patch 11 is an incremental patch that adds
course leader access functionality on top of the
base implementation
3. The patches should be applied in sequence:
- First: MR 71 (or Patch 10 if it can be fixed)
- Second: Patch 11
Comment #14
ribel