fix(backend): ログインできなくなるため、ugcVisibilityForVisitorがnoneでもusers/showは許可するように
This commit is contained in:
parent
9dc423afd4
commit
8f025c447b
|
@ -6,9 +6,10 @@
|
||||||
### Client
|
### Client
|
||||||
- Enhance: 非同期的なコンポーネントの読み込み時のハンドリングを強化
|
- Enhance: 非同期的なコンポーネントの読み込み時のハンドリングを強化
|
||||||
- Fix: リアクションの一部の絵文字が重複して表示されることがある問題を修正
|
- Fix: リアクションの一部の絵文字が重複して表示されることがある問題を修正
|
||||||
|
- Fix: 非利用者に対するユーザー作成コンテンツの公開範囲が全て非公開になっている場合にログインできない問題を修正
|
||||||
|
|
||||||
### Server
|
### Server
|
||||||
-
|
- Fix: 非利用者に対するユーザー作成コンテンツの公開範囲が全て非公開になっている場合でもusers/showを許可するように
|
||||||
|
|
||||||
|
|
||||||
## 2025.5.1
|
## 2025.5.1
|
||||||
|
|
|
@ -116,9 +116,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
private apiLoggerService: ApiLoggerService,
|
private apiLoggerService: ApiLoggerService,
|
||||||
) {
|
) {
|
||||||
super(meta, paramDef, async (ps, me, _1, _2, _3, ip) => {
|
super(meta, paramDef, async (ps, me, _1, _2, _3, ip) => {
|
||||||
if (this.serverSettings.ugcVisibilityForVisitor === 'none' && me == null) {
|
// ログイン時にusers/showできなくなってしまう
|
||||||
throw new ApiError(meta.errors.noSuchUser);
|
//if (this.serverSettings.ugcVisibilityForVisitor === 'none' && me == null) {
|
||||||
}
|
// throw new ApiError(meta.errors.noSuchUser);
|
||||||
|
//}
|
||||||
|
|
||||||
let user;
|
let user;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue