commit ae2c3d43653c33d01c180adc6b3f54474a7b234f parent 3329e644ddbcba21212926b85e65498a75b002b2 Author: Peter Kosyh <p.kosyh@gmail.com> Date: Mon, 7 Sep 2020 21:28:01 +0300 admin can create new echoes Diffstat:
| M | ii-node/web.go | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ii-node/web.go b/ii-node/web.go @@ -482,7 +482,7 @@ func www_new(ctx *WebContext, w http.ResponseWriter, r *http.Request) error { if newecho != "" { echo = newecho } - if !ctx.www.edb.Allowed(echo) { + if !ctx.www.edb.Allowed(echo) && ctx.User.Id != 1{ ii.Error.Printf("This echo is disallowed") return errors.New("This echo is disallowed") }