Skip to content

Commit

Permalink
Merge pull request #56 from Gera-IC/patch-22
Browse files Browse the repository at this point in the history
Fixed update permissions
  • Loading branch information
petersirka authored Sep 11, 2023
2 parents a1334eb + 527d988 commit 5261386
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/setup/schemas/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ NEWSCHEMA('Apps', function(schema) {

for (let m of diff.upd) {
m.form.id = undefined;
await db.modify('op.tbl_app_permission', m.form).id('id', m.db.id).where('appid', params.id).promise($);
await db.modify('op.tbl_app_permission', m.form).id(m.db.id).where('appid', params.id).promise($);
}

for (let m of diff.rem)
await db.remove('op.tbl_app_permission').id('id', m.id).where('appid', params.id).promise($);
await db.remove('op.tbl_app_permission').id(m).where('appid', params.id).promise($);

FUNC.clearcache('A' + params.id);
$.success(params.id);
Expand All @@ -136,4 +136,4 @@ NEWSCHEMA('Apps', function(schema) {
}
});

});
});

0 comments on commit 5261386

Please sign in to comment.