dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 3da9137515feaf4a77c610d64dc514ee6ef40156
parent d37e8f058e772c0932fdd2d90c530e3ca80e2ad8
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sun,  4 Dec 2022 21:27:54 -0500

add doc

Diffstat:
Mpkg/web/handlers/api/v1/slashInterceptor.go | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/pkg/web/handlers/api/v1/slashInterceptor.go b/pkg/web/handlers/api/v1/slashInterceptor.go @@ -170,10 +170,12 @@ func handleKickCmd(c *Command) (handled bool) { c.err = ErrRedirect return true } + // Can't kick a vetted user (unless admin) if !c.authUser.IsAdmin && user.Vetted { c.err = ErrRedirect return true } + // Can't kick another moderator (unless admin) if !c.authUser.IsAdmin && user.IsModerator() { c.err = ErrRedirect return true