mirror of
https://github.com/dborth/vbagx.git
synced 2025-01-01 05:31:48 +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;
|
const token = response.data.token;
|
||||||
delete response.data.token;
|
delete response.data.token;
|
||||||
const user = response.data.user;
|
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;
|
http.defaults.headers.common['Authorization'] = token;
|
||||||
await dispatch('setBasicData', { token, user, roles });
|
await dispatch('setBasicData', { token, user, roles });
|
||||||
return response;
|
return response;
|
||||||
|
Loading…
Reference in New Issue
Block a user