mirror of
https://github.com/wassname/talk.git
synced 2026-08-13 12:40:11 +08:00
Removed old TODO's
This commit is contained in:
@@ -45,10 +45,6 @@ const deleteAction = ({user}, {id}) => {
|
||||
};
|
||||
|
||||
module.exports = (context) => {
|
||||
|
||||
// TODO: refactor to something that'll return an error in the event an attempt
|
||||
// is made to mutate state while not logged in. There's got to be a better way
|
||||
// to do this.
|
||||
if (context.user && context.user.can('mutation:createAction', 'mutation:deleteAction')) {
|
||||
return {
|
||||
Action: {
|
||||
|
||||
Reference in New Issue
Block a user