rename isCollaborator to hasWriteAccess

This commit is contained in:
Shawn Erquhart
2017-08-20 16:02:57 -04:00
parent 6df35a2f30
commit 0dd173a83f
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ export default class API {
return this.request("/user");
}
isCollaborator(user) {
hasWriteAccess() {
return this.request(this.repoURL)
.then(repo => repo.permissions.push)
.catch(error => {