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

HAI-1946 Only show buttons that user has permissions for in hanke view #380

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

markohaarni
Copy link
Contributor

@markohaarni markohaarni commented Oct 2, 2023

Description

Show Edit hanke button if user has EDIT permission. Show Add application button if user has EDIT_APPLICATIONS permission. Show End hanke button if user has DELETE permission. Show Cancel hanke button if user has DELETE permission.

Jira Issue: https://helsinkisolutionoffice.atlassian.net/browse/HAI-1946

Type of change

  • Bug fix
  • New feature
  • Other

Instructions for testing

  1. Navigate to hanke view for which you have Hakemusasiointi or Katseluoikeus and check that there is no Edit project button.
  2. Navigate to hanke view for which you have Hankemuokkaus or Katseluoikeus and check that there is no Add application button.
  3. Navigate to hanke view for which you do not have Kaikki oikeudet and check that there is no End project and Cancel the project buttons.

Checklist:

  • I have written new tests (if applicable)
  • I have ran the tests myself (if applicable)
  • I have made necessary changes to the documentation, link to confluence
    or other location:

Other relevant info

Please describe here if there is e.g. some requirements for this change or
other info that the tester/user needs to know.

…s not have edit rights

Edit hanke link button (pen icon) is hidden in hanke list if user
does not have edit rights for that hanke.
Show Edit hanke button if user has EDIT permission.
Show Add application button if user has EDIT_APPLICATIONS permission.
Show End hanke button if user has DELETE permission.
Show Cancel hanke button if user has DELETE permission.
Base automatically changed from HAI-1945 to dev October 6, 2023 07:24
@markohaarni markohaarni merged commit 65ac60a into dev Oct 6, 2023
1 check passed
@markohaarni markohaarni deleted the HAI-1946 branch October 6, 2023 12:54
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