restrict email parameter to users with EditUserEmail perm
This commit is contained in:
parent
c9e99c075d
commit
033ddb185d
|
@ -18,6 +18,9 @@ func Users(w http.ResponseWriter, r *http.Request, u *c.User) c.RouteError {
|
||||||
|
|
||||||
name := r.FormValue("s-name")
|
name := r.FormValue("s-name")
|
||||||
email := r.FormValue("s-email")
|
email := r.FormValue("s-email")
|
||||||
|
if !u.Perms.EditUserEmail && email != "" {
|
||||||
|
email = ""
|
||||||
|
}
|
||||||
hasParam := name != "" || email != ""
|
hasParam := name != "" || email != ""
|
||||||
|
|
||||||
page, _ := strconv.Atoi(r.FormValue("page"))
|
page, _ := strconv.Atoi(r.FormValue("page"))
|
||||||
|
|
Loading…
Reference in New Issue