@resolveio/client-lib-core 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/account-manager.service.mjs +12 -9
- package/fesm2015/resolveio-client-lib-core.mjs +11 -8
- package/fesm2015/resolveio-client-lib-core.mjs.map +1 -1
- package/fesm2020/resolveio-client-lib-core.mjs +11 -8
- package/fesm2020/resolveio-client-lib-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1611,16 +1611,19 @@ class AccountManagerService {
|
|
|
1611
1611
|
if (this.isUserSuperAdmin()) {
|
|
1612
1612
|
return true;
|
|
1613
1613
|
}
|
|
1614
|
-
this.user.getValue()
|
|
1615
|
-
|
|
1614
|
+
let user = this.user.getValue();
|
|
1615
|
+
if (user) {
|
|
1616
|
+
user.roles.groups.forEach(group => {
|
|
1617
|
+
if (group.views.filter(a => a.startsWith(view)).length) {
|
|
1618
|
+
res = true;
|
|
1619
|
+
}
|
|
1620
|
+
});
|
|
1621
|
+
if (user.roles.miscs.filter(a => a.startsWith(view)).length) {
|
|
1622
|
+
res = true;
|
|
1623
|
+
}
|
|
1624
|
+
if (user.roles.groups.filter(a => a.name === view).length) {
|
|
1616
1625
|
res = true;
|
|
1617
1626
|
}
|
|
1618
|
-
});
|
|
1619
|
-
if (this.user.getValue().roles.miscs.filter(a => a.startsWith(view)).length) {
|
|
1620
|
-
res = true;
|
|
1621
|
-
}
|
|
1622
|
-
if (this.user.getValue().roles.groups.filter(a => a.name === view).length) {
|
|
1623
|
-
res = true;
|
|
1624
1627
|
}
|
|
1625
1628
|
return res;
|
|
1626
1629
|
}
|