service: drop unnecessary admin check in handleUserRun
The command is marked as admin-only already.
This commit is contained in:
parent
bdb470484f
commit
1ad2ee7ef5
@ -1057,9 +1057,6 @@ func handleUserDelete(ctx *serviceContext, params []string) error {
|
||||
}
|
||||
|
||||
func handleUserRun(ctx *serviceContext, params []string) error {
|
||||
if !ctx.user.Admin {
|
||||
return fmt.Errorf("only admins may run command as other users")
|
||||
}
|
||||
if len(params) < 2 {
|
||||
return fmt.Errorf("expected at least two arguments")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user