diff --git a/ui/admin/jsconfig.json b/ui/admin/jsconfig.json deleted file mode 100644 index f408cac8c..000000000 --- a/ui/admin/jsconfig.json +++ /dev/null @@ -1 +0,0 @@ -{"compilerOptions":{"target":"es6","experimentalDecorators":true},"exclude":["node_modules","bower_components","tmp","vendor",".git","dist"]} \ No newline at end of file diff --git a/ui/admin/tests/acceptance/roles/update-test.js b/ui/admin/tests/acceptance/roles/update-test.js index 625108247..21737c705 100644 --- a/ui/admin/tests/acceptance/roles/update-test.js +++ b/ui/admin/tests/acceptance/roles/update-test.js @@ -65,6 +65,14 @@ module('Acceptance | roles | update', function (hooks) { assert.equal(this.server.db.roles[0].name, 'Updated admin role'); }); + test('cannot make changes to an existing role without proper authorization', async function (assert) { + assert.expect(1); + instances.role.authorized_actions = + instances.role.authorized_actions.filter((item) => item !== 'update'); + await visit(urls.role); + assert.notOk(find('.rose-layout-page-actions .rose-button-secondary')); + }); + test('can cancel changes to an existing role', async function (assert) { assert.expect(1); await visit(urls.role); diff --git a/ui/desktop/jsconfig.json b/ui/desktop/jsconfig.json deleted file mode 100644 index f408cac8c..000000000 --- a/ui/desktop/jsconfig.json +++ /dev/null @@ -1 +0,0 @@ -{"compilerOptions":{"target":"es6","experimentalDecorators":true},"exclude":["node_modules","bower_components","tmp","vendor",".git","dist"]} \ No newline at end of file