So I know how to disable/enable a button when inputs in the same form are empty/filled.
But let's say I have applied backend permissions first and disabled some buttons. How do I make sure they are not re-enabled when someone with no permissions writes in the input ?
I can in theory also disable all inputs based on permission but can you suggest a better solution?
Example in django template:
<button type="submit" class="btn btn-default" id="my_button"
{% if not can_post %}disabled{% endif %}>Apply
</button>