Masked email: x:MaskedEmail/changes and a state in /get (fork additions)
The fork's per-account change log answers /changes, collapsing a mask created and destroyed in the window. /changes on a registry type needs that type's get permission.
This commit is contained in:
@@ -361,7 +361,12 @@ impl MethodName {
|
||||
"get" => MethodFunction::Get,
|
||||
"set" => MethodFunction::Set,
|
||||
"query" => MethodFunction::Query,
|
||||
"changes" => MethodFunction::Changes,
|
||||
)?;
|
||||
// inbuxa: only masked email has /changes (a fork addition)
|
||||
if fnc == MethodFunction::Changes && obj != ObjectType::MaskedEmail {
|
||||
return None;
|
||||
}
|
||||
|
||||
if obj.flags() & OBJ_SINGLETON == 0 || fnc != MethodFunction::Query {
|
||||
(MethodObject::Registry(obj), fnc).into()
|
||||
|
||||
Reference in New Issue
Block a user