KL
Size: a a a
KL
AS
KL
NA
KL
canUserModify(user, comment)
и использовал как-то так const user = await getUser(userId);
const comment = await getComment(commentId);
if(!canUserModify(user,comment)){
throw new NotAuthorized('ERR_ACCESS');
}
// do whatewher you have to do
KL
IB
IB
KL
AS
canUserModify(user, comment)
и использовал как-то так const user = await getUser(userId);
const comment = await getComment(commentId);
if(!canUserModify(user,comment)){
throw new NotAuthorized('ERR_ACCESS');
}
// do whatewher you have to do
IB
KL
IB
KL
AT
AT
А
NA
RK
AS