Skip to content

Commit 2cddf4a

Browse files
committed
fix: remove namespace creation restriction
1 parent dd3d7f6 commit 2cddf4a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

server/auth/auth.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ func getClient(ctx context.Context, kubeConfig *v1.Config, db *v1.DB, sysConfig
105105
}
106106

107107
func IsAuthorized(c *v1.Client, namespace, verb, group, resource, name string) (allowed bool, err error) {
108-
if resource == "namespaces" && verb == "create" {
109-
return false, status.Error(codes.PermissionDenied, "creating namespaces is not supported in the community edition")
110-
}
111-
112108
review, err := c.AuthorizationV1().SelfSubjectAccessReviews().Create(&authorizationv1.SelfSubjectAccessReview{
113109
Spec: authorizationv1.SelfSubjectAccessReviewSpec{
114110
ResourceAttributes: &authorizationv1.ResourceAttributes{

0 commit comments

Comments
 (0)