⚡️ (core): Registro de acciones inmutable
This commit is contained in:
parent
5b2ddeb6cc
commit
58d1fef4f1
15 changed files with 624 additions and 244 deletions
|
|
@ -58,10 +58,7 @@ impl DeclarePermissions {
|
|||
|
||||
/// Despacha todas las acciones `DeclarePermissions` registradas construyendo el catálogo.
|
||||
pub(crate) fn dispatch(registry: &mut PermissionRegistry) {
|
||||
dispatch_actions(
|
||||
&ActionKey::new(UniqueId::of::<Self>(), None, None),
|
||||
|action: &Self| (action.handler)(registry),
|
||||
);
|
||||
dispatch_actions(|action: &Self| (action.handler)(registry));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue