permissions

This commit is contained in:
2024-04-03 20:19:10 -07:00
parent dfccbf35cd
commit 543c09118a

View File

@@ -100,6 +100,9 @@
:href "/"}
"Dashboard")]
(when (can? (:identity request)
{:subject :invoice-page})
(list
(menu-button- {"@click.prevent" "if (selected == 'invoices') {selected = null } else { selected = 'invoices'} "
:icon svg/accounting-invoice-mail}
"Invoices")
@@ -133,11 +136,14 @@
"Voided")
(menu-button- {:href (bidi/path-for client-routes/routes
:import-invoices)} "Import")
#_(menu-button- {:href (bidi/path-for ssr-routes/only-routes
(when (can? (:identity request)
{:subject :ar-invoice
:activity :read})
(menu-button- {:href (bidi/path-for ssr-routes/only-routes
::oi-routes/new)
:active? (= ::oi-routes/new (:matched-route request))
:hx-boost "true"}
"Create outgoing"))
"Create outgoing")))))
(when
(can? (:identity request) {:subject :sales :activity :read})