ita-social-projects / GreenCity

The main aim of “GreenCity” project is to teach people in a playful and challenging way to have an eco-friendly lifestyle. A user can view on the map places that have some eco-initiatives or suggest discounts for being environmentally aware (for instance, coffee shops that give a discount if a customer comes with their own cup). А user can start doing an environment-friendly habit and track their progress with a habit tracker.
MIT License
65 stars 80 forks source link

[Tariff] Employees without permissions can add location, courier, receiving station #6092

Closed DanaIuich closed 1 year ago

DanaIuich commented 1 year ago

Environment: All Reproducible: always Build found: 24/07/2023

Preconditions User should be on position which doesn't have permission to add location, courier, receiving station (e.x. navigator) User should be logged Go to https://www.greencity.social/#/ubs-admin/tariffs

Steps to reproduce

  1. On the right side of page click on gears and choose "Add" - "Location"
  2. In pop-up window "Add location" fill in all fields and enter "Add" button
  3. Overload the page and verify the result
  4. On the right side of page click on gears and choose "Add" - "Courier"
  5. In pop-up window "Add courier" enter the name courier on english and ukrainian languages
  6. Click on "Add" button, Overload the page and verify the result
  7. On the right side of page click on gears and choose "Add" - "Receiving station"
  8. Select station and click on "Add" button
  9. Overload the page and verify the result

Actual result Employees without permissions can add location, courier, receiving station

Expected result The dropdown "Add" is not active

User story and test case links E.g.: https://github.com/ita-social-projects/GreenCity/issues/5538

https://github.com/ita-social-projects/GreenCity/assets/128155213/7e3eb2d2-3f01-412e-8035-b172ecebbb0e

https://github.com/ita-social-projects/GreenCity/assets/128155213/d540d2f2-e384-4ba2-a748-3e3e110499e5

https://github.com/ita-social-projects/GreenCity/assets/128155213/f8198cda-9e27-41e3-a1e1-c1c9f6112789

DanaIuich commented 1 year ago

Bug is fixed