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: the delete project button is displayed and the deletion is accessible for the manage specific project permission gf-570 #578

Merged

Conversation

Fjortis
Copy link
Collaborator

@Fjortis Fjortis commented Sep 27, 2024

  • Removed delete button showing for users with any of the Projectpermissions.
  • Adjusted backend to limit deletion for users with Projectpermissions

Test

@Fjortis Fjortis added the bug label Sep 27, 2024
@Fjortis Fjortis added this to the git-fit-release-6 milestone Sep 27, 2024
@Fjortis Fjortis self-assigned this Sep 27, 2024
@Fjortis Fjortis changed the title fix: The Delete project button is displayed and the Deletion is accessible for the Manage specific Project permission #570 fix: the delete project button is displayed and the deletion is accessible for the manage specific project permission #570 Sep 27, 2024
@Fjortis Fjortis changed the title fix: the delete project button is displayed and the deletion is accessible for the manage specific project permission #570 fix: the delete project button is displayed and the deletion is accessible for the manage specific project permission gf-570 Sep 27, 2024
@@ -378,8 +383,8 @@ const Project = (): JSX.Element => {
<div className={styles["project-header"]}>
<h1 className={styles["title"]}>{project.name}</h1>
<ProjectDetailsMenu
hasDeleteProjectsPermissions={hasDeleteProjectsPermissions}
Copy link
Collaborator

@liza-veis liza-veis Sep 27, 2024

Choose a reason for hiding this comment

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

to make it more consistent

Suggested change
hasDeleteProjectsPermissions={hasDeleteProjectsPermissions}
hasDeleteProjectsPermission={hasDeleteProjectsPermission}

@liza-veis liza-veis merged commit d5737b1 into main Sep 28, 2024
6 checks passed
@github-actions github-actions bot mentioned this pull request Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

2 participants