|
|
@@ -81,13 +81,7 @@ export default {
|
|
|
})
|
|
|
.then(res => {
|
|
|
this.authorities = res.filter(
|
|
|
- i =>
|
|
|
- i.name === 'ROLE_ADMIN' ||
|
|
|
- i.name === 'ROLE_OPERATOR' ||
|
|
|
- i.name === 'ROLE_NEWS' ||
|
|
|
- i.name === 'ROLE_COMPANY' ||
|
|
|
- i.name === 'ROLE_MESSAGE' ||
|
|
|
- i.name === 'ROLE_SHOWROOM'
|
|
|
+ i => i.name !== 'ROLE_USER' && i.name !== 'ROLE_MINTER' && i.name !== 'ROLE_DEV'
|
|
|
);
|
|
|
if (!this.authority && res[0]) {
|
|
|
this.authority = res[0].name;
|