mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
node pools: list nodes in pool (#17413)
This commit is contained in:
@@ -710,6 +710,9 @@ func (a *ACL) AllowAgentWrite() bool {
|
||||
// AllowNodeRead checks if read operations are allowed for a node
|
||||
func (a *ACL) AllowNodeRead() bool {
|
||||
switch {
|
||||
// a is nil if ACLs are disabled.
|
||||
case a == nil:
|
||||
return true
|
||||
case a.management:
|
||||
return true
|
||||
case a.node == PolicyWrite:
|
||||
|
||||
Reference in New Issue
Block a user