()
| 83 | } |
| 84 | |
| 85 | hasPermission() { |
| 86 | const { scratchPaper } = this.props.current; |
| 87 | const { user } = this.props.env; |
| 88 | if (!scratchPaper) return false; |
| 89 | if (scratchPaper.gistId !== 'new') { |
| 90 | if (!user) return false; |
| 91 | if (scratchPaper.login !== user.login) return false; |
| 92 | } |
| 93 | return true; |
| 94 | } |
| 95 | |
| 96 | deleteGist() { |
| 97 | const { scratchPaper } = this.props.current; |
nothing calls this directly
no outgoing calls
no test coverage detected