Commit b9d8e0005d8bd8bba6302f9b1756b585e9564ec1
Merge branch 'master' of http://39.108.227.113:8001/zhusen/canrd-erp-front
Showing
1 changed file
with
2 additions
and
1 deletions
src/pages/Tickets/index.tsx
... | ... | @@ -300,6 +300,7 @@ const TicketsPage = () => { |
300 | 300 | render: (_text, record) => { |
301 | 301 | if (record?.id) { |
302 | 302 | const hasResolvePermission = record?.paths?.includes('RESOLVE'); |
303 | + const hasDeletePermission = record?.paths?.includes('DELETE'); | |
303 | 304 | return ( |
304 | 305 | <> |
305 | 306 | {hasResolvePermission && ( |
... | ... | @@ -312,7 +313,7 @@ const TicketsPage = () => { |
312 | 313 | <ReadModal id={record.id} toReload={reload}></ReadModal> |
313 | 314 | |
314 | 315 | </> |
315 | - {hasResolvePermission && ( | |
316 | + {hasDeletePermission && ( | |
316 | 317 | <> |
317 | 318 | <DeleteButton |
318 | 319 | ids={[record.id]} | ... | ... |