feat(auth): support preventing users from updating their profile
This commit is contained in:
@@ -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();
|
||||
};
|
Reference in New Issue
Block a user