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: permissions are correctly applied in popup form #1387

Merged
merged 5 commits into from
Aug 8, 2022

Conversation

TheSlimvReal
Copy link
Collaborator

@TheSlimvReal TheSlimvReal commented Aug 2, 2022

Currently the row details component evaluates update permissions on the input entity. When clicking the + button on a table a new entity is created which can result in the popup being in disabled mode (e.g. a entity needs to have a certain value for the user to have update permissions).
This is fixed by detecting, whether the entity is currently being created or updated.

Also, I discovered a small but in the ActivitiesOverviewComponent:

  1. Create a new activity in the component
  2. Edit this activity
  3. The activity disappears from the table

This happens because the newly created entity is not present in the records array of the ActivitiesOverviewComponent.

Visible/Frontend Changes

  • RowDetailsComponent is never disabled when creating a entity

Architectural/Backend Changes

--

@github-actions
Copy link

github-actions bot commented Aug 2, 2022

@sonarcloud
Copy link

sonarcloud bot commented Aug 8, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@TheSlimvReal TheSlimvReal merged commit 2663b15 into master Aug 8, 2022
@TheSlimvReal TheSlimvReal deleted the row-details-permissions branch August 8, 2022 04:33
@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.9.0-master.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.9.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

3 participants