The "developer" role is redundant; remove it

Bug #786842 reported by Matt Giuca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MUGLE
Triaged
Medium
Unassigned

Bug Description

Currently, there are two ways to tell if someone is a developer:
- They have the role "DEVELOPER", and/or
- They are a member of a devteam.

This is redundant. By definition, if you are in a devteam, you are a developer, and if you aren't, then you aren't. Therefore, we shouldn't have a separate database role for this.

Instead, in the User client class, add a derived field numDevTeams which shows the number of devteams this user is in. That can be used by the client UI for the same purpose as the current DEVELOPER role is used for (e.g., deciding whether to show "My Teams" and "My Games" links).

Tags: datastore
Revision history for this message
Matt Giuca (mgiuca) wrote :

The presence of the developer role is masking bug #786876. Even if we keep this role (for now), there should be no privileges that depend on DEVELOPER; they should all depend on either GUEST or ADMIN.

Revision history for this message
Matt Giuca (mgiuca) wrote :

Partially addressed in bug #786935.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.