// SPDX-License-Identifier: AGPL-3.0-or-later package model import "time" type SiteSettings struct { SiteName string SiteDescription string SignupMode string UpdatedAt time.Time } // SignupOpen returns true if self-registration is allowed. func (s *SiteSettings) SignupOpen() bool { return s.SignupMode == "open" } // SignupRequests returns true if signup requires admin approval. func (s *SiteSettings) SignupRequests() bool { return s.SignupMode == "requests" } // SignupClosed returns true if no new signups are allowed. func (s *SiteSettings) SignupClosed() bool { return s.SignupMode == "closed" }