[backend] Require authentication to view channels

This commit is contained in:
Laura Hausmann 2023-11-03 22:46:59 +01:00
parent fe2a97a6c3
commit 2166ea019d
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
4 changed files with 4 additions and 7 deletions

View file

@ -4,8 +4,7 @@ import { Channels } from "@/models/index.js";
export const meta = {
tags: ["channels"],
requireCredential: false,
requireCredentialPrivateMode: true,
requireCredential: true,
res: {
type: "array",

View file

@ -9,7 +9,7 @@ import { sqlLikeEscape } from "@/misc/sql-like-escape.js";
export const meta = {
tags: ["channels"],
requireCredential: false,
requireCredential: true,
res: {
type: "array",

View file

@ -5,8 +5,7 @@ import { Channels } from "@/models/index.js";
export const meta = {
tags: ["channels"],
requireCredential: false,
requireCredentialPrivateMode: true,
requireCredential: true,
res: {
type: "object",

View file

@ -7,8 +7,7 @@ import { activeUsersChart } from "@/services/chart/index.js";
export const meta = {
tags: ["notes", "channels"],
requireCredential: false,
requireCredentialPrivateMode: true,
requireCredential: true,
res: {
type: "array",