Comparing version 1.2.2 to 1.2.3
22
index.js
@@ -310,8 +310,8 @@ /*! | ||
let user = await new Promise(function (resolve) { | ||
let res = cookies.get(Self.cookieKey.user) | ||
if (res) { | ||
res = JSON.parse(res) | ||
return resolve(res) | ||
} | ||
return resolve(null) | ||
let res = cookies.get(Self.cookieKey.user) | ||
if (res) { | ||
res = JSON.parse(res) | ||
return resolve(res) | ||
} | ||
return resolve(null) | ||
}).catch(function (e) { | ||
@@ -321,7 +321,7 @@ console.error(e) | ||
if (user && Array.isArray(permissions)) { | ||
user.roles.forEach(function(roleKey) { | ||
if (permissions.includes(roleKey)) { | ||
result = true | ||
} | ||
}) | ||
user.permissions.forEach(function(roleKey) { | ||
if (permissions.includes(roleKey)) { | ||
result = true | ||
} | ||
}) | ||
} | ||
@@ -328,0 +328,0 @@ return result |
MIT License | ||
Copyright (c) 2022-2024 Oloma Dev. | ||
Copyright (c) 2023-2024 Oloma Dev | ||
Every change made and published in the Olobase version is covered by the CC BY-NC 4.0 license. | ||
@@ -11,2 +9,4 @@ | ||
MIT License | ||
All rights reserved. | ||
@@ -13,0 +13,0 @@ |
{ | ||
"name": "olobase", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Create fast and easy admin panel apps with Vue and Php technologies", | ||
@@ -19,3 +19,3 @@ "main": "index.js", | ||
"author": "Oloma", | ||
"license": "MIT", | ||
"license": "CC BY-NC 4.0", | ||
"bugs": { | ||
@@ -22,0 +22,0 @@ "url": "https://github.com/olomadev/olobase/issues" |
# Olobase Core | ||
Olobase is a tool that allows to you quickly and easily develop modern web panels using Vue.js/Vuetify and Php. | ||
Olobase is designed to create fast and easy admin panel applications with Vue.js - Php technologies and also allows extensive customizations. It is built on Vuetify. | ||
# Documentation | ||
<a href="https://oloma.dev/olobase-docs/index.html">https://oloma.dev/olobase-docs/index.html</a> | ||
<a href="https://olobase.dev/docs/index.html">https://olobase.dev/docs/index.html</a> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39467