Project: moodle
Issue MDL-51646: Implement plan status
When a user is lacking permissions, their plan will automatically be created with the status "Draft". When a user has permissions, they can choose whether the plan is "Draft" or "Active". A user that only has the permission to _create_ their own plan cannot change the plan (including linked competencies) once it was set "Active" or "Completed", more will come with MDL-51035. Users with the permission to manage a plan can. The page listing the plans should contain tabs to display the list of Draft/Active/Completed plans. We can look at MDL-50976, if it does not seem to be closed to finish we can ignore that fact and raise a follow-up issue to implement the tabs. Note, in MDL-51805 we will freeze the result of the competencies of a user when the plan becomes complete. Also note that there will be more status added in the future when the plans will be reviewed, etc... The actions to be taken when the plan is marked as completed will be set in MDL-51805.
Story points: 3