func (permission *Permission) Deny(mode PermissionMode, roles ...string) *Permission {
	if mode == CRUD {
		return permission.Deny(Create, roles...).Deny(Update, roles...).Deny(Read, roles...).Deny(Delete, roles...)
	}

	if permission.DeniedRoles[mode] == nil {
		permission.DeniedRoles[mode] = []string{}
	}
	permission.DeniedRoles[mode] = append(permission.DeniedRoles[mode], roles...)
	return permission
}
func (permission *Permission) Deny(mode PermissionMode, roles ...string) *Permission {
	if mode == CRUD {
		return permission.Deny(Create, roles...).Deny(Update, roles...).Deny(Read, roles...).Deny(Delete, roles...)
	}

	if permission.DeniedRoles[mode] == nil {
		permission.DeniedRoles[mode] = []string{}
	}
	permission.DeniedRoles[mode] = append(permission.DeniedRoles[mode], roles...)
	return permission
}
func ( permission * Permission ) Deny ( mode PermissionMode , roles ... string ) * Permission { if mode == CRUD { return permission . Deny ( Create , roles ... ) . Deny ( Update , roles ... ) . Deny ( Read , roles ... ) . Deny ( Delete , roles ... ) } if permission . DeniedRoles [ mode ] == nil { permission . DeniedRoles [ mode ] = [ ] string { } } permission . DeniedRoles [ mode ] = append ( permission . DeniedRoles [ mode ] , roles ... ) return permission }
// Deny deny permission mode for roles
Deny deny permission mode for roles