Organization access #32

Merged
akrdzic merged 4 commits from organization-access into master 2018-10-15 00:27:53 +02:00
akrdzic commented 2018-10-11 07:24:21 +02:00 (Migrated from gitlab.com)

Handle organization access for users based on organization roles

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

Preparation:

Execute composer install and composer update-db

Declare new enviroment variable: WIAAS_CUSTOMER_INTERFACE which should be url to frontend interface.

Unit test:

Execute unit test and check if all passed

Smoke test:

  1. Login to backend site

  2. Create few organizations with multiple roles

  3. Create users and assign them to organizations.

  4. Notice that on user table list roles that are listed for users are actually roles of organization.

  5. Select one of the users for login

  6. Try logging in with role that is not assigned to the organization

  7. Notice that login error is generated

  8. Try logging in as customer to backend when you organization has customer role assigned to it
    (add this value to the form by yourself sine it is not listed by default)

  9. Notice that error message is generated

  10. Try logging in with some other role that is assigned to your organization

  11. Notice that login was succesfull

  12. After logging in to dashboard notice dropdown next to profile section in admin bar

  13. Dropdown should contain all roles for you organizations.

  14. Try switching roles and notice view is changed (ex. Suppliers cannot see Products tab or Documents tab)

  15. Notice that clicking on Customer role leads you to frontend interface.

  16. Login to frontend interface and confirm that access to rest API works as before.

**Handle organization access for users based on organization roles** https://app.asana.com/0/697944902557002/838943199344906 Preparation: Execute `composer install` and `composer update-db` Declare new enviroment variable: `WIAAS_CUSTOMER_INTERFACE` which should be url to frontend interface. Unit test: Execute unit test and check if all passed Smoke test: 1. Login to backend site 2. Create few organizations with multiple roles 3. Create users and assign them to organizations. 4. Notice that on user table list roles that are listed for users are actually roles of organization. 5. Select one of the users for login 6. Try logging in with role that is not assigned to the organization 7. Notice that login error is generated 8. Try logging in as customer to backend when you organization has customer role assigned to it (add this value to the form by yourself sine it is not listed by default) 9. Notice that error message is generated 10. Try logging in with some other role that is assigned to your organization 11. Notice that login was succesfull 12. After logging in to dashboard notice dropdown next to profile section in admin bar 13. Dropdown should contain all roles for you organizations. 14. Try switching roles and notice view is changed (ex. Suppliers cannot see Products tab or Documents tab) 15. Notice that clicking on `Customer` role leads you to frontend interface. 16. Login to frontend interface and confirm that access to rest API works as before.
akrdzic commented 2018-10-11 07:28:14 +02:00 (Migrated from gitlab.com)

changed the description

changed the description
akrdzic commented 2018-10-11 07:39:49 +02:00 (Migrated from gitlab.com)

mentioned in merge request !33

mentioned in merge request !33
akrdzic commented 2018-10-12 16:49:42 +02:00 (Migrated from gitlab.com)

changed the description

changed the description
akrdzic commented 2018-10-13 14:28:56 +02:00 (Migrated from gitlab.com)

added 1 commit

  • 17acc9d9 - Error proof creating suppliers link to organization

Compare with previous version

added 1 commit <ul><li>17acc9d9 - Error proof creating suppliers link to organization</li></ul> [Compare with previous version](https://gitlab.com/saburly/wiaas/new-wiaas/merge_requests/32/diffs?diff_id=25032332&start_sha=c6a1f9837d7c2db57d94905b004151af92fd9843)
akrdzic commented 2018-10-15 00:25:23 +02:00 (Migrated from gitlab.com)

added 24 commits

  • 17acc9d9...803e62ea - 23 commits from branch master
  • bd724d12 - Merge branch 'master' into organization-access

Compare with previous version

added 24 commits <ul><li>17acc9d9...803e62ea - 23 commits from branch <code>master</code></li><li>bd724d12 - Merge branch &#39;master&#39; into organization-access</li></ul> [Compare with previous version](https://gitlab.com/saburly/wiaas/new-wiaas/merge_requests/32/diffs?diff_id=25079290&start_sha=17acc9d96a9222764791d3b15500b2acdc370336)
bilal.catic commented 2018-10-15 00:27:53 +02:00 (Migrated from gitlab.com)

merged

merged
bilal.catic commented 2018-10-15 00:27:53 +02:00 (Migrated from gitlab.com)

mentioned in commit 8789eb1426

mentioned in commit 8789eb1426a6b3c33764cab2ad2ec12a0b90743d
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#32