[BUG] process can not be modify after the user deleted
Describe the bug After admin delete an user, which has create a lot process. Those process and process instance still can view and run by other user, but no one can modify this process because it is empty when you open the process editor.
To Reproduce Steps to reproduce the behavior, for example:
- Create an user like 'testUser' by admin
- Login in with user 'testUser'
- Create a process 'processA'
- Admin delete this 'testUser' user
- Login with other user, and view the process 'processA' which we just create in ProcessDefinition
- Click the edit button open the process editor
- You will find out the editor is empty
Expected behavior Current authorization strategy, each user can modify any process under same project, no matter they create this process or not. So I think it is reasonable that the process still can be modify, even though the create user has deleted.
Screenshots
if you open the process which user has deleted, you will get this, the task not show
Which version of Dolphin Scheduler: -[1.1.0]
Additional context We make each developer has their own account, and develop their the process for same project, and one process may depend the other one, that's what I think the user design for. But we may delete a user if they quit, a this time, it mean we lost and can not modify the process any more.
Requirement or improvement
- I think the process belong to project and some one who has authorized permission can delete or modify them is better
Thanks for the feedback, we will fix it in the new version
you can use administrator to update
For now, you have to transfer the user's projects before you delete them, otherwise would get an error as below.
