Skip to content

Commit

Permalink
修复bird-button权限验证
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxx-u committed Jul 20, 2018
1 parent 47e1934 commit 29281f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Form/BirdButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class BirdButton extends React.Component {
constructor(props) {
super(props);

const permission = this.props.permission;
const permissionName = this.props.permission;

this.state = {
hasPermission: permission === '' || permission.check(permission)
hasPermission: permissionName === '' || permission.check(permissionName)
}
}

Expand Down

0 comments on commit 29281f8

Please sign in to comment.