Add initial implementation of grants
This commit is contained in:
parent
b8f1281f78
commit
69b6579de7
15 changed files with 308 additions and 73 deletions
|
|
@ -278,5 +278,13 @@ func (au *AuthUser) Delete(ctx context.Context) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// run all the user delete hooks
|
||||
for _, c := range au.auth.Dependencies.UserDeleteHooks {
|
||||
if err := c.OnUserDelete(ctx, &au.User); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return table.Delete(&au.User).Error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue