these need to always be enabled anyway... (#34)

This commit is contained in:
Michael Quigley
2023-07-26 16:25:52 -04:00
parent 86b1e3cde7
commit 1130ff8006
2 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,10 @@ import (
)
func CreateShare(root env_core.Root, request *ShareRequest) (*Share, error) {
if !root.IsEnabled() {
return nil, errors.New("environment is not enabled; enable with 'zrok enable' first!")
}
var err error
var out *share.ShareParams