Repository navigation
feat: deactivate user - #373
aayushchugh wants to merge 7 commits into
Conversation
|
|
- hide actions from `member` role - `admin` role can't deactivate `owner` role - deactivated or deleted users can't login
|
Any update on this? |
|
|
||
| // get workspace owner count | ||
| const workspaceOwnerCount = await this.userRepo.roleCountByWorkspaceId( | ||
| 'OWNER', |
There was a problem hiding this comment.
All usages of OWNER and ADMIN should be UserRole.OWNER imported from /common/helpers/types/permission.
| data={[ | ||
| { label: "Members", value: "members" }, | ||
| { label: "Pending", value: "invites" }, | ||
| { label: "Deactivated", value: "deactivated" }, |
There was a problem hiding this comment.
I am not in favor of having another SegmentedControl tab.
I am thinking we could have a filter button which when ticked would show the deactivated users on the already existing "Members" tab.
| } | ||
| > | ||
| <IconTrash size={20} /> | ||
| <Tooltip label="Deactivate member"> |
|
Any update on this? Or any way I can help? 😊 |
|
@SimonHoiberg I'll do required changes by next week |
|
Closing this because of multiple conflicts, I'll create a new PR |
…естирование конвертера — атрибутный уровень' (docmost#373) from test/351-generative-converter into develop Reviewed-on: https://gitea.vvzvlad.xyz/vvzvlad/gitmost/pulls/373

This is 1/2 PRs for #177
In this PR, the owner and admin can deactivate a member.
I would greatly appreciate any feedback.
Delete buttons are disabled for now, they will be enabled when delete route is implemented after this PR is merged.