审计日志并入系统管理、规范项目成员获取逻辑
This commit is contained in:
@@ -3,7 +3,7 @@ import { useAuthStore } from "../store/auth";
|
||||
import { useStudyStore } from "../store/study";
|
||||
|
||||
const PERMISSIONS: Record<string, string[]> = {
|
||||
"milestone.create": ["ADMIN", "PM"],
|
||||
"milestone.create": ["ADMIN", "PM", "CRA", "PV", "IMP"],
|
||||
"subject.create": ["ADMIN", "PM", "CRA"],
|
||||
"subject.enroll": ["ADMIN", "PM", "CRA"],
|
||||
"subject.complete": ["ADMIN", "PM", "CRA"],
|
||||
@@ -26,7 +26,7 @@ const PERMISSIONS: Record<string, string[]> = {
|
||||
};
|
||||
|
||||
const REASONS: Record<string, string> = {
|
||||
"milestone.create": "仅项目负责人可以维护里程碑",
|
||||
"milestone.create": "仅项目成员可维护里程碑",
|
||||
"subject.enroll": "仅 PM/CRA 可更新受试者状态",
|
||||
"subject.complete": "仅 PM/CRA 可更新受试者状态",
|
||||
"subject.drop": "仅 PM/CRA 可更新受试者状态",
|
||||
|
||||
Reference in New Issue
Block a user