added mismatch permission
This commit is contained in:
parent
cb7e044b27
commit
dec959c495
@ -181,7 +181,11 @@ const CollectionList = ({ fromDate, toDate, isPending, searchString }) => {
|
|||||||
{col.getValue(row)}
|
{col.getValue(row)}
|
||||||
</td>
|
</td>
|
||||||
))}
|
))}
|
||||||
{(isAdmin || canAddPayment || canViewCollection) && (
|
{(isAdmin ||
|
||||||
|
canAddPayment ||
|
||||||
|
canViewCollection ||
|
||||||
|
canEditCollection ||
|
||||||
|
canCreate) && (
|
||||||
<td
|
<td
|
||||||
className="sticky-action-column text-center"
|
className="sticky-action-column text-center"
|
||||||
style={{ padding: "12px 8px" }}
|
style={{ padding: "12px 8px" }}
|
||||||
@ -205,21 +209,16 @@ const CollectionList = ({ fromDate, toDate, isPending, searchString }) => {
|
|||||||
|
|
||||||
<ul className="dropdown-menu dropdown-menu-end">
|
<ul className="dropdown-menu dropdown-menu-end">
|
||||||
{/* View */}
|
{/* View */}
|
||||||
{(isAdmin ||
|
|
||||||
canAddPayment ||
|
<li>
|
||||||
canViewCollection ||
|
<a
|
||||||
canEditCollection ||
|
className="dropdown-item cursor-pointer"
|
||||||
canCreate) && (
|
onClick={() => setViewCollection(row.id)}
|
||||||
<li>
|
>
|
||||||
<a
|
<i className="bx bx-show me-2 text-primary"></i>
|
||||||
className="dropdown-item cursor-pointer"
|
<span>View</span>
|
||||||
onClick={() => setViewCollection(row.id)}
|
</a>
|
||||||
>
|
</li>
|
||||||
<i className="bx bx-show me-2 text-primary"></i>
|
|
||||||
<span>View</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{/* Only if not completed */}
|
{/* Only if not completed */}
|
||||||
{!row?.markAsCompleted && (
|
{!row?.markAsCompleted && (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user