new correction

This commit is contained in:
Fateme
2020-07-05 00:04:12 +04:30
21 changed files with 521 additions and 139 deletions
+1
View File
@@ -3,6 +3,7 @@ import { TokenService } from '@/services'
const $hasRole = function(roles) {
if (TokenService.getToken()) {
roles = roles.split('|');
for (const role of roles) {
if(TokenService.getInfo().roles && Array.isArray(TokenService.getInfo().roles) && TokenService.getInfo().roles.includes(role)) {
return true;