mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
c6753a0efd
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
6 lines
114 B
JavaScript
6 lines
114 B
JavaScript
import {helper} from '@ember/component/helper';
|
|
|
|
export default helper(function noop() {
|
|
return () => {};
|
|
});
|