feat(auth): support preventing users from updating their profile

This commit is contained in:
Ali BARIN
2024-08-23 11:09:28 +00:00
parent 53f63996bd
commit db966eae2d
13 changed files with 192 additions and 36 deletions

View File

@@ -0,0 +1,12 @@
export async function up(knex) {
await knex('config').insert({
key: 'userManagement.preventUsersFromUpdatingTheirProfile',
value: {
data: false
}
});
};
export async function down(knex) {
await knex('config').where({ key: 'userManagement.preventUsersFromUpdatingTheirProfile' }).delete();
};