Skip to content

Commit 9183837

Browse files
committed
add superadmin
1 parent 388844b commit 9183837

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

live-demo/app/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,11 @@ if (import.meta.url === `file://${process.argv[1]}`) {
214214
role: 'user', // THE DEMO user role is 'user' not 'superadmin', he can't do any destructive actions
215215
});
216216
}
217-
if (!await admin.resource('users').get([Filters.EQ('email', "admin@adminfoth.dev")])) {
217+
if (!await admin.resource('users').get([Filters.EQ('email', "admin1@adminfoth.dev")])) {
218218
await admin.resource('users').create({
219219
email: "admin@adminfoth.dev",
220220
password_hash: await AdminForth.Utils.generatePasswordHash(process.env.ADMIN_PASSWORD),
221-
role: 'user', // THE DEMO user role is 'user' not 'superadmin', he can't do any destructive actions
221+
role: 'superadmin', // THE DEMO user role is 'user' not 'superadmin', he can't do any destructive actions
222222
});
223223
}
224224

0 commit comments

Comments
 (0)