bruce-models 0.3.4 → 0.3.6
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/dist/bruce-models.es5.js +3 -3
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +3 -3
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/file/client-file.js +1 -1
- package/dist/lib/file/client-file.js.map +1 -1
- package/dist/lib/user/session.js +2 -2
- package/dist/lib/user/session.js.map +1 -1
- package/dist/types/user/session.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -3608,7 +3608,7 @@
|
|
|
3608
3608
|
}
|
|
3609
3609
|
ClientFile.GetUrl = GetUrl;
|
|
3610
3610
|
function GetUrlWithExt(api, file) {
|
|
3611
|
-
return api.GetBaseUrl() + "/file/" + file + (file.FileExt ? file.FileExt : "");
|
|
3611
|
+
return api.GetBaseUrl() + "/file/" + file.ID + (file.FileExt ? file.FileExt : "");
|
|
3612
3612
|
}
|
|
3613
3613
|
ClientFile.GetUrlWithExt = GetUrlWithExt;
|
|
3614
3614
|
function Get(api, fileId) {
|
|
@@ -4871,12 +4871,12 @@
|
|
|
4871
4871
|
}
|
|
4872
4872
|
Session.Logout = Logout;
|
|
4873
4873
|
function IsPermEnabled(session, accountId, perm) {
|
|
4874
|
-
var _a;
|
|
4874
|
+
var _a, _b;
|
|
4875
4875
|
if (!perm) {
|
|
4876
4876
|
throw ("Perm is required.");
|
|
4877
4877
|
}
|
|
4878
4878
|
perm = perm.toLocaleUpperCase();
|
|
4879
|
-
var group = (_a = session === null || session === void 0 ? void 0 : session.
|
|
4879
|
+
var group = (_b = (_a = session === null || session === void 0 ? void 0 : session.User) === null || _a === void 0 ? void 0 : _a.AccessPermissions) === null || _b === void 0 ? void 0 : _b.find(function (x) { return x["ClientAccount.ID"] == accountId; });
|
|
4880
4880
|
if (!group) {
|
|
4881
4881
|
return false;
|
|
4882
4882
|
}
|