Skip to content

Commit a9d8f39

Browse files
committed
lint fix
1 parent 0b943b0 commit a9d8f39

File tree

1 file changed

+5
-6
lines changed
  • internal/middleware/auth/authorizer

1 file changed

+5
-6
lines changed

internal/middleware/auth/authorizer/abac.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ package authorizer
33
import (
44
"github.com/openinfradev/tks-api/internal/middleware/auth/request"
55
"github.com/openinfradev/tks-api/internal/repository"
6-
"github.com/openinfradev/tks-api/internal/usecase"
76
"github.com/openinfradev/tks-api/pkg/log"
87
"net/http"
9-
"strings"
108
)
119

1210
var (
@@ -37,10 +35,11 @@ func OpaGatekeeper(r *http.Request) bool {
3735
return false
3836
}
3937

40-
if strings.HasSuffix(requestUserInfo.GetAccountId(), string(usecase.OPAGatekeeperReservedAccountIdSuffix)) {
41-
// Allow restricted API from OPA Gatekeeper
42-
// ToDo: Add only API endpoints for OPA Gatekeeper
43-
}
38+
_ = requestUserInfo
39+
// ToDo: Add only API endpoints for OPA Gatekeeper
40+
//if strings.HasSuffix(requestUserInfo.GetAccountId(), string(usecase.OPAGatekeeperReservedAccountIdSuffix)) {
41+
// // Allow restricted API from OPA Gatekeeper
42+
//}
4443

4544
return true
4645
}

0 commit comments

Comments
 (0)