Move file transfer restriction into network settings
This commit is contained in:
@@ -213,6 +213,7 @@ export class Accounts {
|
||||
this.policy(row.senderUserId!, userId) === 'block'
|
||||
)
|
||||
fail(409, 'REQUEST_STATE', '수락할 수 없는 요청입니다.');
|
||||
if (row.kind === 'file') this.service.admin.assertNewUploads();
|
||||
if (row.kind === 'file')
|
||||
this.service.storage.reserve({ id: row.senderUserId!, kind: 'user' }, id);
|
||||
if (allowSender) this.rule(userId, row.senderUserId!, 'allow');
|
||||
|
||||
Reference in New Issue
Block a user