I am building a school site on Drupal 8. Among others, I have two content types, one for teachers, one for courses. Teachers also have user accounts and belong to a role, say 'teacher'.
I want teachers (authenticated site users who belong to the 'teacher' role) to be able to edit the pages of the courses they teach. The problem is, there are courses which are being taught by more than one teacher, hence I can't solve this simply by enabling 'edit own content' and have them as owners.
So all in all, I want to give 'edit access' for specific nodes, to specific, sometimes multiple, users.
I researched before asking this fairly simple question.
There is a mention of another module, flexi access, but that is only available for Drupal 7.
There is also a link to ACL, "an API for other modules to create lists of users and give them access to nodes", but that in itself is only in pre-release for Drupal 8, and a module which seems to be using it, Content Access has open security issues (and also is in pre-release status).
Searching around, I also found Permissions by Term module, seems stable and very well documented, however I didn't find it very intuitive to be honest, and also it seems to cater basically for restricting view access to nodes (as suggested here, but also from its video tutorial).
I want something simpler. And I obviously want all nodes to still be publicly viewable by anyone (even anonymous users, of course). So although Permissions by Term seemed a possible choice, I don't know if I can/should use it.
There is also the Group module which is frequently referenced, but that also seems an overkill and way too complicated for the simple task I want to accomplish.
I 'm a bit lost on this one .. It seems quite simple, yet I can't find a way to do it. Any help would be greatly appreciated ...