Add in check for edit perms before showing add/create button in empty state macro

This commit is contained in:
leigh-mil
2019-12-03 15:07:58 -05:00
parent 5ebcaa3950
commit 31d9f34615
3 changed files with 6 additions and 3 deletions

View File

@@ -19,7 +19,8 @@
message=message,
button_text="Add a new application",
button_link=url_for("applications.view_new_application_step_1", portfolio_id=portfolio.id),
view_only_text="Contact your portfolio administrator to create an application."
view_only_text="Contact your portfolio administrator to create an application.",
user_can_create=can_create_applications,
) }}
{% else %}