async beforeUpdate(data, model) {
try {
if (model.updated_by != 1) {
throw('You dont have access to update')
}
} catch (error) {
throw error;
}
},
Where model.updated_by contains the user id. So only my id is accepted, id 1.