fix: harden permission-gated UI — minimum-org endpoint, modal/Popconfirm fail-closed on revocation
Some checks failed
CI / check (pull_request) Failing after 3m46s
Some checks failed
CI / check (pull_request) Failing after 3m46s
This commit is contained in:
@@ -27,8 +27,8 @@ interface ExamDetail extends ExamItem {
|
||||
}
|
||||
|
||||
const PhoneCell: React.FC<{ row: ScoreRow }> = ({ row }) => {
|
||||
const reveal = useViewSensitive(row.studentId, '考试管理', hasPermission('log:create'));
|
||||
const { hasPermission } = usePermission();
|
||||
const reveal = useViewSensitive(row.studentId, '考试管理', hasPermission('log:create'));
|
||||
if (!row.phone) return <>-</>;
|
||||
return (
|
||||
<Space size={4}>
|
||||
|
||||
Reference in New Issue
Block a user