aboutsummaryrefslogtreecommitdiff
path: root/service/auth.go
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-01-30 15:32:37 +0000
committerr <r@freesoftwareextremist.com>2020-01-30 15:37:07 +0000
commit17e55d2a9bc7d0f5ed922370b8ac3ad4db9f583b (patch)
tree37f94e17e31d7485d16b6d9922023ffb182a5e6d /service/auth.go
parent84cd3bc4368afdfe41320b1388fd9a14bf90fce9 (diff)
downloadbloat-17e55d2a9bc7d0f5ed922370b8ac3ad4db9f583b.tar.gz
bloat-17e55d2a9bc7d0f5ed922370b8ac3ad4db9f583b.zip
Add user search page
Diffstat (limited to 'service/auth.go')
-rw-r--r--service/auth.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/service/auth.go b/service/auth.go
index 78934fd..f127f5c 100644
--- a/service/auth.go
+++ b/service/auth.go
@@ -162,6 +162,15 @@ func (s *as) ServeSearchPage(ctx context.Context, c *model.Client, q string,
return s.Service.ServeSearchPage(ctx, c, q, qType, offset)
}
+func (s *as) ServeUserSearchPage(ctx context.Context, c *model.Client,
+ id string, q string, offset int) (err error) {
+ err = s.authenticateClient(ctx, c)
+ if err != nil {
+ return
+ }
+ return s.Service.ServeUserSearchPage(ctx, c, id, q, offset)
+}
+
func (s *as) ServeSettingsPage(ctx context.Context, c *model.Client) (err error) {
err = s.authenticateClient(ctx, c)
if err != nil {