free-be-account 0.0.7 → 0.0.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/index.js +5 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1367,10 +1367,11 @@ module.exports = (app) => ({
|
|
|
1367
1367
|
onRoutersReady: async (app, m) => {
|
|
1368
1368
|
// create default user if it's an empty db
|
|
1369
1369
|
if (await m.models['account'].countDocuments({}) <= 0) {
|
|
1370
|
-
let perms = app.ctx.serviceList()
|
|
1371
|
-
if (!clearPermission(perms)) {
|
|
1372
|
-
|
|
1373
|
-
}
|
|
1370
|
+
// let perms = app.ctx.serviceList()
|
|
1371
|
+
// if (!clearPermission(perms)) {
|
|
1372
|
+
// perms = {}
|
|
1373
|
+
// }
|
|
1374
|
+
const perms = '*';
|
|
1374
1375
|
|
|
1375
1376
|
await m.models.account.create({
|
|
1376
1377
|
Saved: true,
|