@iankibetsh/shframework 5.3.8 → 5.3.9
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/library.js +4 -1
- package/dist/library.mjs +4 -1
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -4162,7 +4162,10 @@ const useUserStore = pinia.defineStore('user-store', {
|
|
|
4162
4162
|
} catch (error) {
|
|
4163
4163
|
user= null;
|
|
4164
4164
|
}
|
|
4165
|
-
if
|
|
4165
|
+
if(typeof user !== 'object'){
|
|
4166
|
+
user = null;
|
|
4167
|
+
}
|
|
4168
|
+
if (user ) {
|
|
4166
4169
|
user.isAllowedTo = function (slug) {
|
|
4167
4170
|
if (this.permissions) {
|
|
4168
4171
|
let permissions = [];
|
package/dist/library.mjs
CHANGED
|
@@ -4150,7 +4150,10 @@ const useUserStore = defineStore('user-store', {
|
|
|
4150
4150
|
} catch (error) {
|
|
4151
4151
|
user= null;
|
|
4152
4152
|
}
|
|
4153
|
-
if
|
|
4153
|
+
if(typeof user !== 'object'){
|
|
4154
|
+
user = null;
|
|
4155
|
+
}
|
|
4156
|
+
if (user ) {
|
|
4154
4157
|
user.isAllowedTo = function (slug) {
|
|
4155
4158
|
if (this.permissions) {
|
|
4156
4159
|
let permissions = [];
|