First, the purpose of disabling the user is that the user does not have permission to log in to the system.
1. If it was created by the user, the user cannot be used after being disabled. If the permissions have been assigned to other users, there should be an admin operation to revoke the permissions. I think, in business, most processes should not be automatically disabled or deleted. 2. After the user is disabled. Because you can no longer log in to the system. So, you can't create a project. > 在 2020年5月2日,21:42,[email protected] 写道: > > > Great,I think we can discuss the other aspect. If add the `state` in table > t_ds_user.It will also change other places. > Such as the following. > 1、If a user created the process definition or resource or datasource,We > change the user state from enable to disable,the resource or datasource > should also disable. > 2、If a user is disable,Whether it can create the resource or datasource? > > > DolphinScheduler(Incubator) PPMC > Gang Li 李岗 > > [email protected]<mailto:[email protected]> > > 发件人: wenhemin > 发送时间: 2020-04-26 11:23 > 收件人: dev > 主题: [DISCUSS] Add "state" field to table t_ds_user > hello, friends! > > The issue: https://github.com/apache/incubator-dolphinscheduler/issues/1923 > <https://github.com/apache/incubator-dolphinscheduler/issues/1923> > Need to add a “state” field, Control whether users can log in to the system. > > Sql : ALTER TABLE t_ds_user ADD `state` int(1) DEFAULT 1 COMMENT 'state > 0:disable 1:enable'; > > The PR: https://github.com/apache/incubator-dolphinscheduler/pull/2424 > <https://github.com/apache/incubator-dolphinscheduler/pull/2424>
