@vexcms/core 0.0.10 → 0.0.12
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/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -310,6 +310,7 @@ function defineAccess(props) {
|
|
|
310
310
|
const rolePerms = props.permissions[role];
|
|
311
311
|
if (!rolePerms) continue;
|
|
312
312
|
for (const slug of Object.keys(rolePerms)) {
|
|
313
|
+
if (slug === "admin") continue;
|
|
313
314
|
if (!resourceSlugs.has(slug)) {
|
|
314
315
|
console.warn(
|
|
315
316
|
`[vex] defineAccess: permission resource "${slug}" not found in resources`
|