mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-05 23:44:22 +00:00
Implement workspace handlers integration tests
This commit is contained in:
@@ -29,6 +29,11 @@ func (w *Workspace) Validate() error {
|
||||
return validate.Struct(w)
|
||||
}
|
||||
|
||||
// ValidateGitSettings validates the git settings if git is enabled
|
||||
func (w *Workspace) ValidateGitSettings() error {
|
||||
return validate.StructExcept(w, "ID", "UserID", "Theme")
|
||||
}
|
||||
|
||||
// SetDefaultSettings sets the default settings for the workspace
|
||||
func (w *Workspace) SetDefaultSettings() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user