Add hierarhical managment #5
Reference in New Issue
Block a user
Delete Branch "hierarchical-organization-managment"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Assana card: https://app.asana.com/0/697944902557002/721180604738689
Document: https://docs.google.com/document/d/1WM64QjyvbLfT48Tq7Lubk_sR27IqOzeIiczYiOR--d4/edit?usp=sharing
Tested possibility of categorizing users into organizations and granting access permissions on orders
based on user organization and its departments.
NOTE: I updated wordpress to latest version.
Custom hooks code is in plugin
user-organizationSmoke test:
Currently I added three testing organization: Coor Nordic => Coor SE => Coor Kista where each one of them is
department of previous one. I also added three users for each one of them (coor_nordic, coor_se, coor_kista).
FIRST TEST:
npm install, thennpm starthttp://localhost:3000User Dashboardtab.5.1. User
coor_kistaonly has its own order5.2. User
coor_sehas its own and order from usercoor_kista5.3. User
coor_nordichas its own and orders of both previous users.customerand go toUser dashboardtabcustomeronly retrieved its own order.SECOND TEST:
wia rest api
Sorry, you cannot view this resource.error.changed the description
@akrdzic One note for the name of the "user-organization" plugin. We should follow the WordPress naming convention to avoid naming collisions (user-organisation is to general), and have a organisation name in front of the plugin name. You can see my example for plugin name
"wiaas-extended-restful-api". I know that there are some third party plugins that are not flowing this. But I think we should keep all of our wiaas custom plugin code in one folder/ plugin so we could keep track of our code and distinguish it from third party plugins.
This is not important for this experiment. But in future development
merged
mentioned in commit
ae20e0eda3