Skip to content

Support change member's role on UI#634

Merged
vincent-olivert-riera merged 2 commits intoline:masterfrom
hoangpn:feature/change_member_role
Aug 14, 2025
Merged

Support change member's role on UI#634
vincent-olivert-riera merged 2 commits intoline:masterfrom
hoangpn:feature/change_member_role

Conversation

@hoangpn
Copy link
Contributor

@hoangpn hoangpn commented Aug 14, 2025

Currently, the only way to change a member's role is to delete the member and add them again with the desired role. From a UX perspective, this is somewhat inconvenient. Therefore, we have added a small button next to each member's role label in the member list table to quickly support changing the member's role.
And since users cannot remove the owner's permission without transferring
ownership, we also have removed the button for this action from the UI.

{{ permission_form.permission }}
<button class="btn btn-primary btn-xs">Change</button>
</form>
</div>
Copy link
Contributor

@vincent-olivert-riera vincent-olivert-riera Aug 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hoangpn , one more thing. The owner of an object should always have admin permissions, and you cannot change its permissions unless you change the object's ownership.
Therefore, this cog icon and the whole collapsed form should not be included if the user is the owner of the object.

{% if not owner %}
Display all of that
{% endif %}

@hoangpn hoangpn force-pushed the feature/change_member_role branch 2 times, most recently from adda672 to 7b35557 Compare August 14, 2025 04:50
Since users cannot remove the owner's permission without transferring
ownership, we have removed the button for this action from the UI.
Currently, the only way to change a member's role is to delete the member and add them
again with the desired role. From a UX perspective, this is somewhat inconvenient.
Therefore, we have added a small button next to each member's role label in the member list
table to quickly support changing the member's role.
@hoangpn hoangpn force-pushed the feature/change_member_role branch from 7b35557 to 5f3fa23 Compare August 14, 2025 06:39
@vincent-olivert-riera vincent-olivert-riera merged commit 6a9b17b into line:master Aug 14, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants