summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-22 02:13:50 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-22 02:13:50 -0700
commit80f84a6d61714945cbd92f646d2131ba650c6912 (patch)
tree14cb8909f84afb1c3f70b41c54f773bd666e40bf
parenta0ea25a4abd67332f7a4a85c91f1490b0274b318 (diff)
adding initial support to edit and add admin users
-rw-r--r--system/admin/admin.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/system/admin/admin.go b/system/admin/admin.go
index 3beef21..243af1f 100644
--- a/system/admin/admin.go
+++ b/system/admin/admin.go
@@ -5,6 +5,7 @@ package admin
import (
"bytes"
"encoding/json"
+ "fmt"
"html/template"
"net/http"
@@ -334,7 +335,6 @@ func UsersList(req *http.Request) ([]byte, error) {
return nil, err
}
- var tmpUsrs []user.User
var usrs []user.User
for i := range jj {
var u user.User
@@ -347,12 +347,7 @@ func UsersList(req *http.Request) ([]byte, error) {
}
}
- // filter out empty user records
- for i := range tmpUsrs {
- if tmpUsrs[i].Email != "" {
- usrs = append(usrs, tmpUsrs[i])
- }
- }
+ fmt.Println(usrs)
// make buffer to execute html into then pass buffer's bytes to Admin
buf := &bytes.Buffer{}