* refactor: show form buttons only if permissions exist * style: add semicolon * fix: typo in conditions