forked from External/ergo
fix #404
This commit is contained in:
parent
eaf0328608
commit
1121e3d320
3 changed files with 8 additions and 1 deletions
|
|
@ -1108,6 +1108,10 @@ func (am *AccountManager) VHostReject(account string, reason string) (result VHo
|
|||
|
||||
func (am *AccountManager) VHostSetEnabled(client *Client, enabled bool) (result VHostInfo, err error) {
|
||||
munger := func(input VHostInfo) (output VHostInfo, err error) {
|
||||
if input.ApprovedVHost == "" {
|
||||
err = errNoVhost
|
||||
return
|
||||
}
|
||||
output = input
|
||||
output.Enabled = enabled
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue