mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
16 lines
363 B
Go
16 lines
363 B
Go
package cron
|
|
|
|
import "errors"
|
|
|
|
func validateSetValue(appName string, key string, value string) error {
|
|
if key == "mailfrom" && appName != "--global" {
|
|
return errors.New("Property cannot be specified on a per-app basis")
|
|
}
|
|
|
|
if key == "mailto" && appName != "--global" {
|
|
return errors.New("Property cannot be specified on a per-app basis")
|
|
}
|
|
|
|
return nil
|
|
}
|