fix: allow workspace admins to change role assignments in webui.
@@ -90,9 +90,9 @@ const WorkspaceMembers: React.FC<Props> = ({
rolesAssignableToScope,
workspace,
}: Props) => {
- const { canUpdateRoles } = usePermissions();
+ const { canAssignRoles } = usePermissions();
const { settings, updateSettings } = useSettings<WorkspaceMembersSettings>(settingsConfig);
- const userCanAssignRoles = canUpdateRoles({ workspace });
+ const userCanAssignRoles = canAssignRoles({ workspace });
const mockWorkspaceMembers = useFeature().isOn('mock_workspace_members');
