summaryrefslogtreecommitdiffstats
path: root/web/params.go
diff options
context:
space:
mode:
Diffstat (limited to 'web/params.go')
-rw-r--r--web/params.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/params.go b/web/params.go
index 286c3f44f..cca306844 100644
--- a/web/params.go
+++ b/web/params.go
@@ -47,6 +47,8 @@ type Params struct {
ActionId string
RoleId string
RoleName string
+ SchemeId string
+ Scope string
Page int
PerPage int
LogsPerPage int
@@ -167,6 +169,12 @@ func ParamsFromRequest(r *http.Request) *Params {
params.RoleName = val
}
+ if val, ok := props["scheme_id"]; ok {
+ params.SchemeId = val
+ }
+
+ params.Scope = query.Get("scope")
+
if val, err := strconv.Atoi(query.Get("page")); err != nil || val < 0 {
params.Page = PAGE_DEFAULT
} else {