isGuest returns true if the current user is a guest
()
| 917 | |
| 918 | // isGuest returns true if the current user is a guest |
| 919 | func (h *handler) isGuest() bool { |
| 920 | return h.user != nil && h.user.Name() == "" |
| 921 | } |
| 922 | |
| 923 | // helper for read only check |
| 924 | func (h *handler) isReadOnlyGuest() bool { |