Socket
Socket
Sign inDemoInstall

egg-born-module-a-base-sync

Package Overview
Dependencies
Maintainers
1
Versions
354
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-born-module-a-base-sync - npm Package Compare versions

Comparing version 4.8.45 to 4.8.46

24

backend/src/bean/bean.atomBase/bean.atomBase_write.js

@@ -121,4 +121,3 @@ // maybe modified by user

const atomStage = item.atomStage;
const isAtomClassRole = atomClass.module === 'a-base' && atomClass.atomClassName === 'role';
if (!isAtomClassRole && atomClassBase.resource && atomStage === 1) {
if (atomClassBase.resource && atomStage === 1) {
// update locales

@@ -132,13 +131,16 @@ if (item.atomName) {

// role
// check if any role exists
const right = await this.modelResourceRole.get({
atomId,
});
if (!right) {
// always add role of template.system when no records
const roleSystem = await this.ctx.bean.role.parseRoleName({ roleName: 'template.system' });
await this.ctx.bean.resource.addResourceRole({
const isAtomClassRole = atomClass.module === 'a-base' && atomClass.atomClassName === 'role';
if (!isAtomClassRole) {
// check if any role exists
const right = await this.modelResourceRole.get({
atomId,
roleId: roleSystem.id,
});
if (!right) {
// always add role of template.system when no records
const roleSystem = await this.ctx.bean.role.parseRoleName({ roleName: 'template.system' });
await this.ctx.bean.resource.addResourceRole({
atomId,
roleId: roleSystem.id,
});
}
}

@@ -145,0 +147,0 @@ }

{
"name": "egg-born-module-a-base-sync",
"version": "4.8.45",
"version": "4.8.46",
"title": "Base",

@@ -5,0 +5,0 @@ "eggBornModule": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc