فهرست منبع

Исправление прав просмотра actreg

Vadim 3 ماه پیش
والد
کامیت
7054d033ca
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/modules/client/activities/c-act-service.ts

+ 1 - 1
src/modules/client/activities/c-act-service.ts

@@ -356,7 +356,7 @@ class CActService {
       throw ApiError.BadRequest("actRegNotFound", "Не найдена регистрация");
     }
 
-    if (actReg.userId === userId) {
+    if (actReg.peOwnerId === userId || actReg.userId === userId) {
       return "owner";
     }