lablup / lablup/backend.ai-webui

Name edit control is offered to users who cannot rename - clicking it fails with 403 (role_create_forbidden)

Open
#8,715 0 comments 0 reactions 0 assignees View on GitHub
quick-capture
Dominant language
TypeScript
Stars
133
Forks
81
Avg merge
1d 11h
Merged PRs (30d)
344

Description

The name in the detail header (e.g. "llama3.1-0nSZpG") renders an edit (pencil) affordance for a user whose role cannot rename it. Attempting the rename fails with a server error toast: "server responded failure: 403 - User ... (role_create_forbidden)".

Expected: when the user's role does not permit renaming, the edit affordance should not be offered (hidden or disabled), instead of surfacing a 403 after the fact.

Captured while working on branch: main

JIRA Issue: FR-3522

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the detail header where the name and pencil edit affordance are rendered, and trace how the current user's role permissions are exposed there. The change is done when users who cannot rename see no usable edit control and attempting the name action no longer produces the reported 403; add or update the relevant UI test if one is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.