mirror of
https://github.com/dborth/vbagx.git
synced 2024-12-28 19:51:50 +01:00
Retrieve roles from user data service
This commit is contained in:
parent
0323aa3f80
commit
c0c87eddb1
@ -41,7 +41,7 @@ const user = createStore({
|
||||
const token = response.data.token;
|
||||
delete response.data.token;
|
||||
const user = response.data.user;
|
||||
const roles = [1, 4, 14]; //Owner, Customer, Seller, Deliverer//response.data.roles;
|
||||
const roles = response.data.roles; //[1, 4, 14]; //Owner, Customer, Seller, Deliverer
|
||||
http.defaults.headers.common['Authorization'] = token;
|
||||
await dispatch('setBasicData', { token, user, roles });
|
||||
return response;
|
||||
|
Loading…
Reference in New Issue
Block a user