mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
ircd:Ⓜ️:event::auth: Call the auth hook for unenumerated/additional types.
This commit is contained in:
parent
bfe1eace7d
commit
2bc795b883
1 changed files with 5 additions and 0 deletions
|
@ -1761,6 +1761,11 @@ try
|
|||
return {data.allow, data.fail};
|
||||
}
|
||||
|
||||
// (non-spec) Call the hook for any types without a branch enumerated
|
||||
// here. The handler will throw on a failure, otherwise fallthrough to
|
||||
// the next rule.
|
||||
event_auth_hook(event, data);
|
||||
|
||||
// 12. Otherwise, allow.
|
||||
data.allow = true;
|
||||
assert(!data.fail);
|
||||
|
|
Loading…
Reference in a new issue