-
Notifications
You must be signed in to change notification settings - Fork 136
Description
We should determine which Project Template is for pre-packed and which one for taas project so we know if we should let customers add works or no.
The best solution here would be to reuse permissions from Project Service model WorkManagementPermission which suppose to control permissions for creating works for particular templates. But so far we don't have yet API endpoints implemented for them. Also, so far we don't have yet a good and comfortable way to define them for Project Templates (no API to manage them).
So for the first release, we can go with a simpler way, which could later be evaluated to use WorkManagementPermission model instead.
- We should define inside
planConfigs,workstreamsConfigpermission rule for creating works inside workstreams.
{
"workstreamsConfig": {
"addWorkPermission": {
"projectRoles": ['manager'],
"topcoderRoles": ['administrator']
},
// other workstreamsConfig properties as per https://github.com/appirio-tech/connect-app/issues/3240
}- During project creation with such a
workstreamsConfig, we should copy this permissionaddWorkPermissioninto project's
details.settings.workstreams = {
"addWorkPermission": {
"projectRoles": ['manager'],
"topcoderRoles": ['administrator']
},
}So after inside Connect we can determine if the user has permission to add works to the project.
@vikasrohit do you think would ok for the first release?