浏览代码

Исправление прав просмотра 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";
     }