Enable login by role both on frontend and backend #40

Merged
akrdzic merged 6 commits from role-access into master 2018-10-22 11:26:57 +02:00
akrdzic commented 2018-10-22 09:49:06 +02:00 (Migrated from gitlab.com)

Login by role

https://app.asana.com/0/697944902557002/864770363438853

Note: Execute clean install for this PR

Smoke test:

  1. login as admin on backend

  2. Create 1 customer and 2 commercial lead organizations

  3. Assign customer organization to commercial lead organizations

  4. Create users for every one of them

  5. Try loggin in as commercial lead user on frontend.

  6. You should get error

  7. Try to login as customer user on frontend

  8. You should be able to login in and see linked commercial leads catalogues

  9. For one of the commercial lead roles assing also cupplier role

  10. Login with its user on backend

  11. Check that you logged in as commercial lead

  12. Pick supplier role

  13. log out and login again

  14. Check that you logged in as supplier this time

  15. Update customer organization so that its customer role is removed and supplier role is assigned

  16. Go back to backend and try clicking on some of the tabs

  17. You should be logged out from frontend since you do not have customer role anymore

  18. Update customer organization with customer role again.

  19. Create simple and bundle package and set prices for bundle package.

  20. Login in as one of commercial leads and set prices.

  21. Complete order process for that package from frontend.

  22. validate that order is visible for commercial lead on his interface.

**Login by role** https://app.asana.com/0/697944902557002/864770363438853 Note: Execute clean install for this PR Smoke test: 1. login as admin on backend 2. Create 1 customer and 2 commercial lead organizations 3. Assign customer organization to commercial lead organizations 4. Create users for every one of them 5. Try loggin in as commercial lead user on frontend. 6. You should get error 7. Try to login as customer user on frontend 8. You should be able to login in and see linked commercial leads catalogues 9. For one of the commercial lead roles assing also cupplier role 10. Login with its user on backend 11. Check that you logged in as commercial lead 12. Pick supplier role 13. log out and login again 14. Check that you logged in as supplier this time 15. Update customer organization so that its customer role is removed and supplier role is assigned 16. Go back to backend and try clicking on some of the tabs 17. You should be logged out from frontend since you do not have customer role anymore 18. Update customer organization with customer role again. 19. Create simple and bundle package and set prices for bundle package. 20. Login in as one of commercial leads and set prices. 21. Complete order process for that package from frontend. 22. validate that order is visible for commercial lead on his interface.
akrdzic commented 2018-10-22 09:52:10 +02:00 (Migrated from gitlab.com)

added 1 commit

Compare with previous version

added 1 commit <ul><li>e420953c - do not set cart cookies</li></ul> [Compare with previous version](https://gitlab.com/saburly/wiaas/new-wiaas/merge_requests/40/diffs?diff_id=25588656&start_sha=21fafc5a4328a0cb0e81c102eca6fb9a3f4d482f)
akrdzic commented 2018-10-22 09:53:48 +02:00 (Migrated from gitlab.com)

added 1 commit

Compare with previous version

added 1 commit <ul><li>5570cf7f - transform auth user last</li></ul> [Compare with previous version](https://gitlab.com/saburly/wiaas/new-wiaas/merge_requests/40/diffs?diff_id=25588743&start_sha=e420953c3967ea4b931a603b0abbfab67f8984c3)
akrdzic commented 2018-10-22 10:30:16 +02:00 (Migrated from gitlab.com)

assigned to @bilal.catic

assigned to @bilal.catic
akrdzic commented 2018-10-22 10:35:35 +02:00 (Migrated from gitlab.com)

added 1 commit

Compare with previous version

added 1 commit <ul><li>3d6f15dd - return error status on login</li></ul> [Compare with previous version](https://gitlab.com/saburly/wiaas/new-wiaas/merge_requests/40/diffs?diff_id=25592257&start_sha=5570cf7f91edbb38a3d1270014db317c4a7b11e2)
akrdzic commented 2018-10-22 10:59:02 +02:00 (Migrated from gitlab.com)

added 1 commit

  • 790d24a1 - forbid admin user on frontend

Compare with previous version

added 1 commit <ul><li>790d24a1 - forbid admin user on frontend</li></ul> [Compare with previous version](https://gitlab.com/saburly/wiaas/new-wiaas/merge_requests/40/diffs?diff_id=25597597&start_sha=3d6f15dd4f931e1cce7d9bb3febbbb43f87ef93b)
akrdzic commented 2018-10-22 11:00:56 +02:00 (Migrated from gitlab.com)

added 1 commit

Compare with previous version

added 1 commit <ul><li>09aac812 - allow admin on frontend</li></ul> [Compare with previous version](https://gitlab.com/saburly/wiaas/new-wiaas/merge_requests/40/diffs?diff_id=25597784&start_sha=790d24a1f695cd7ba0275d977f7498c7310c0114)
bilal.catic commented 2018-10-22 11:26:57 +02:00 (Migrated from gitlab.com)

merged

merged
bilal.catic commented 2018-10-22 11:26:57 +02:00 (Migrated from gitlab.com)

mentioned in commit 00999122a2

mentioned in commit 00999122a23a266b3f8173b5057a09af219a7147
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: senaduka/old-new-wiaas#40