Enable login by role both on frontend and backend #40
Reference in New Issue
Block a user
Delete Branch "role-access"
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?
Login by role
https://app.asana.com/0/697944902557002/864770363438853
Note: Execute clean install for this PR
Smoke test:
login as admin on backend
Create 1 customer and 2 commercial lead organizations
Assign customer organization to commercial lead organizations
Create users for every one of them
Try loggin in as commercial lead user on frontend.
You should get error
Try to login as customer user on frontend
You should be able to login in and see linked commercial leads catalogues
For one of the commercial lead roles assing also cupplier role
Login with its user on backend
Check that you logged in as commercial lead
Pick supplier role
log out and login again
Check that you logged in as supplier this time
Update customer organization so that its customer role is removed and supplier role is assigned
Go back to backend and try clicking on some of the tabs
You should be logged out from frontend since you do not have customer role anymore
Update customer organization with customer role again.
Create simple and bundle package and set prices for bundle package.
Login in as one of commercial leads and set prices.
Complete order process for that package from frontend.
validate that order is visible for commercial lead on his interface.
added 1 commit
e420953c- do not set cart cookiesCompare with previous version
added 1 commit
5570cf7f- transform auth user lastCompare with previous version
assigned to @bilal.catic
added 1 commit
3d6f15dd- return error status on loginCompare with previous version
added 1 commit
790d24a1- forbid admin user on frontendCompare with previous version
added 1 commit
09aac812- allow admin on frontendCompare with previous version
merged
mentioned in commit
00999122a2