Core separation #13

Merged
Teajey merged 11 commits from core-separation into main 2025-06-27 01:14:19 +12:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit e44f299d5d - Show all commits

View File

@ -1,12 +1,12 @@
package lishwist package lishwist
type Admin struct { type Admin struct {
user *User session *Session
} }
func (s *Session) Admin() *Admin { func (s *Session) Admin() *Admin {
if s.User.IsAdmin { if s.User.IsAdmin {
return &Admin{s.User} return &Admin{s}
} else { } else {
return nil return nil
} }