Fix influxql permission grants with no allowances
parent
17f6f55269
commit
19018c97ca
|
@ -123,6 +123,9 @@ func ToRevoke(username string, perm chronograf.Permission) string {
|
|||
|
||||
// ToGrant converts the permission into InfluxQL grants
|
||||
func ToGrant(username string, perm chronograf.Permission) string {
|
||||
if len(perm.Allowed) == 0 {
|
||||
return ""
|
||||
}
|
||||
return ToInfluxQL("GRANT", "TO", username, perm)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue