added perm checks to season pages

This commit is contained in:
2026-02-09 19:56:42 +11:00
parent 0b3301f921
commit aaf532b835
6 changed files with 83 additions and 107 deletions

View File

@@ -104,3 +104,9 @@ func (s *StringField) TrimSpace() *StringField {
s.Value = strings.TrimSpace(s.Value)
return s
}
// Replace replaces all occurances of the given substring
func (s *StringField) Replace(old, new string) *StringField {
s.Value = strings.ReplaceAll(s.Value, old, new)
return s
}