fix: include edit profile email/phone dialogs only if user has perms

otherwise we get JS errors when page loads
This commit is contained in:
Lance Edgar 2024-07-02 14:14:15 -05:00
parent d72d6f8c7c
commit 1f38894f02

View file

@ -461,6 +461,8 @@
</${b}-table>
% if request.has_perm('people_profile.edit_person'):
<${b}-modal has-modal-card
% if request.use_oruga:
v-model:active="deletePhoneShowDialog"
@ -527,6 +529,7 @@
</div>
</${b}-modal>
% endif
</div>
</div>
</div>
@ -694,6 +697,8 @@
</${b}-table>
% if request.has_perm('people_profile.edit_person'):
<${b}-modal has-modal-card
% if request.use_oruga:
v-model:active="deleteEmailShowDialog"
@ -760,6 +765,7 @@
</div>
</${b}-modal>
% endif
</div>
</div>
</div>