Commit c5df0734 authored by EthanWan's avatar EthanWan Committed by 偏右

fix: modify argument name (#1752)

parent e7b603e8
...@@ -46,8 +46,8 @@ const authorize = (authority, error) => { ...@@ -46,8 +46,8 @@ const authorize = (authority, error) => {
if (!authority) { if (!authority) {
throw new Error('authority is required'); throw new Error('authority is required');
} }
return function decideAuthority(targer) { return function decideAuthority(target) {
const component = CheckPermissions(authority, targer, classError || Exception403); const component = CheckPermissions(authority, target, classError || Exception403);
return checkIsInstantiation(component); return checkIsInstantiation(component);
}; };
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment