added perm checks to season pages
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user