[openstreetmap/openstreetmap-website] Additional user roles (Director/Directee) to support best practices in Directed Editing (#1822)

Andy Allan notifications at github.com
Tue Apr 17 03:10:42 UTC 2018

My first thoughts are that we might have the need to create "teams" (or "groups", but that concept has a different history in OSM so I'll stick to "team" for now for clarity). That ensures the Directors can only manage particular Directees (and not Directees from other organisations). This would also help show the organisation, and allow people to e.g. view all the Directee accounts for a particular organisation.

If so, perhaps the Director and Directee roles are actually attributes of the membership of the team, rather than site-wide "user roles" that we have now. For example, in pseudocode
t = Team.new(name: 'foobar school')
d = User.new(display_name: 'S. Teacher')
u = User.new(display_name: 'S. Student')
TeamMembership.new(team: t, user: d, role: 'director')
TeamMembership.new(team: t, user: u, role: 'directee')
However, this doesn't quite cover the limitations of a 'directee' account, such as having limited ability to manage their own account, so there might be a need for for a user role applied to their whole account too.

We should also consider:
* Whether there could be multiple directors for one team
* Whether a directee account can be a member of multiple teams (simultaneously, or over time)
* Whether a regular user account can be a member of a team but not a director (e.g. student has existing account that they would like to use for some directed coursework)
* Before messages can be intercepted and shown to Directors, we would need a [lawful basis](http://www.legislation.gov.uk/ukpga/2016/25/part/2/chapter/2/enacted) to do so, for example getting consent from both the Directee and also whichever user is sending the message.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180416/22cfef75/attachment.html>

More information about the rails-dev mailing list