fix: checkperms (#689)

* fix: read user grants as grant owner

* fix: read user grants as grant owner
This commit is contained in:
Fabi
2020-09-02 16:25:32 +02:00
committed by GitHub
parent 779879f6ae
commit c92042ba47
7 changed files with 5026 additions and 4211 deletions
+2 -2
View File
@@ -1148,10 +1148,10 @@ func (m *CreateMachineRequest) Validate() error {
}
}
if l := utf8.RuneCountInString(m.GetDescription()); l < 1 || l > 500 {
if utf8.RuneCountInString(m.GetDescription()) > 500 {
return CreateMachineRequestValidationError{
field: "Description",
reason: "value length must be between 1 and 500 runes, inclusive",
reason: "value length must be at most 500 runes",
}
}