Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: show table's context menu without table|delete permissions #1132

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

kpodp0ra
Copy link
Collaborator

@kpodp0ra kpodp0ra commented Dec 4, 2024

This commit removes fragment " {menuPermission.deleteTable && (", that was added Jan 24, 2024 when the only action in context menu was table deleting. Times have changed and now there are more things in this menu.

Interestingly, in the codebase there is already the code that hides the menu when the user doesn't have permissions to all available actions:

if (!Object.values(menuPermission).some(Boolean)) {
return null;
}

So " {menuPermission.deleteTable && (" can be safely deleted without any consequences.

@boris-w
Copy link
Contributor

boris-w commented Dec 4, 2024

This is quite an embarrassing bug 😅 .

@boris-w boris-w merged commit abb82fc into teableio:develop Dec 4, 2024
7 checks passed
@kpodp0ra kpodp0ra deleted the fix-perms branch December 4, 2024 03:35
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