Browse Source

fix: modify argument name (#1752)

pull/1775/merge
EthanWan 8 years ago
committed by 偏右
parent
commit
c5df07343d
  1. 4
      src/components/Authorized/Secured.js

4
src/components/Authorized/Secured.js

@ -46,8 +46,8 @@ const authorize = (authority, error) => {
if (!authority) {
throw new Error('authority is required');
}
return function decideAuthority(targer) {
const component = CheckPermissions(authority, targer, classError || Exception403);
return function decideAuthority(target) {
const component = CheckPermissions(authority, target, classError || Exception403);
return checkIsInstantiation(component);
};
};

Loading…
Cancel
Save