File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
enterprise/coderd/portsharing Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,11 @@ import (
7
7
8
8
"golang.org/x/xerrors"
9
9
10
+ "github.com/stretchr/testify/require"
11
+
10
12
agentproto "github.com/coder/coder/v2/agent/proto"
11
13
"github.com/coder/coder/v2/coderd/appearance"
12
14
"github.com/coder/coder/v2/codersdk"
13
- "github.com/stretchr/testify/require"
14
15
)
15
16
16
17
func TestGetServiceBanner (t * testing.T ) {
Original file line number Diff line number Diff line change 1
1
package portsharing
2
2
3
3
type PortSharer interface {
4
- Enabled () bool
4
+ CanRestrictShareLevel () bool
5
5
}
6
6
7
7
type AGPLPortSharer struct {}
8
8
9
- func (AGPLPortSharer ) Enabled () bool {
10
- return true
9
+ func (AGPLPortSharer ) CanRestrictShareLevel () bool {
10
+ return false
11
11
}
12
12
13
13
var DefaultPortSharer PortSharer = AGPLPortSharer {}
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ func NewEnterprisePortSharer() *EnterprisePortSharer {
6
6
return & EnterprisePortSharer {}
7
7
}
8
8
9
- func (EnterprisePortSharer ) Enabled () bool {
9
+ func (EnterprisePortSharer ) CanRestrictShareLevel () bool {
10
10
return true
11
11
}
You can’t perform that action at this time.
0 commit comments