Skip to content

Commit 632bd3e

Browse files
committed
User "all" is also valid for ports
1 parent 9fed00f commit 632bd3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

object/policy/policy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func (c *Config) Validate(user, rType, rValue, rOptions string) bool {
178178
}
179179

180180
if rType == "port" {
181-
return c.allowPort(user, rValue)
181+
return c.allowPort(user, rValue) || c.allowPort("all", rValue)
182182
}
183183

184184
return false

0 commit comments

Comments
 (0)