mirror of
https://github.com/dborth/vbagx.git
synced 2025-01-01 05:31:48 +01:00
-Fix user roles getting
This commit is contained in:
parent
a23e95ca0a
commit
736a43dbb0
@ -22,7 +22,7 @@ let User = {
|
|||||||
};
|
};
|
||||||
localStorage.setItem("request_params", JSON.stringify(params));
|
localStorage.setItem("request_params", JSON.stringify(params));
|
||||||
delete userData.data.token;
|
delete userData.data.token;
|
||||||
userData["userPermissions"] = [1, 4, 14, 15]; //Owner, Customer, Seller, Deliverer
|
userData.data["userPermissions"] = [1, 4, 14, 15]; //Owner, Customer, Seller, Deliverer
|
||||||
localStorage.setItem("userData",JSON.stringify(userData.data));
|
localStorage.setItem("userData",JSON.stringify(userData.data));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user