fire events on snative and allow from CallTx

This commit is contained in:
Ethan Buchman
2015-05-21 17:58:28 -04:00
committed by Jae Kwon
parent d824e1b731
commit b11012026d
4 changed files with 42 additions and 16 deletions

View File

@@ -79,6 +79,9 @@ func (p *BasePermissions) Unset(ty PermFlag) error {
}
func (p *BasePermissions) Copy() *BasePermissions {
if p == nil {
return nil
}
return &BasePermissions{
Perms: p.Perms,
SetBit: p.SetBit,
@@ -140,6 +143,9 @@ func (aP *AccountPermissions) RmRole(role string) bool {
}
func (aP *AccountPermissions) Copy() *AccountPermissions {
if aP == nil {
return nil
}
r := make([]string, len(aP.Roles))
copy(r, aP.Roles)
return &AccountPermissions{