mirror of
https://github.com/documize/community.git
synced 2025-08-02 12:05:23 +02:00
anon user space/categopry handling
This commit is contained in:
parent
30321781c2
commit
7ce3adb65e
8 changed files with 36 additions and 38 deletions
|
@ -16,6 +16,7 @@ package category
|
|||
import (
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
||||
|
@ -280,9 +281,12 @@ func (h *Handler) Delete(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
// GetSummary returns number of documents and users for space categories.
|
||||
func (h *Handler) GetSummary(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Println("ctx.UserID")
|
||||
|
||||
method := "category.GetSummary"
|
||||
ctx := domain.GetRequestContext(r)
|
||||
|
||||
|
||||
spaceID := request.Param(r, "spaceID")
|
||||
if len(spaceID) == 0 {
|
||||
response.WriteMissingDataError(w, method, "spaceID")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue