Ghost/ghost/admin/app/helpers/noop.js
Kevin Ansfield c6753a0efd Hid snippet management UI from staff users without permissions
no issue

- snippets can only be created and deleted by owners/admins/editors
- added a property in the editor controller to determine if the logged in user has sufficient permissions, then only pass the appropriate save/delete snippet actions to the editor component if the check is passed
- updates koenig menus and toolbars to skip rendering of buttons if the associated action function is not available
2020-10-27 14:42:59 +00:00

6 lines
114 B
JavaScript

import {helper} from '@ember/component/helper';
export default helper(function noop() {
return () => {};
});