Kill typo 💣
This commit is contained in:
parent
5b0b7d7002
commit
8f27943fe4
|
@ -145,8 +145,8 @@
|
||||||
).property('build.state', 'hasPermission', 'tab')
|
).property('build.state', 'hasPermission', 'tab')
|
||||||
|
|
||||||
canRegenerateKey: (->
|
canRegenerateKey: (->
|
||||||
@get('hasPermissions')
|
@get('hasPermission')
|
||||||
).property('hasPermissions')
|
).property('hasPermission')
|
||||||
|
|
||||||
canCancelJob: (->
|
canCancelJob: (->
|
||||||
@get('isJobTab') && @get('job.canCancel') && @get('hasPermission')
|
@get('isJobTab') && @get('job.canCancel') && @get('hasPermission')
|
||||||
|
@ -163,7 +163,7 @@
|
||||||
|
|
||||||
hasPermission: (->
|
hasPermission: (->
|
||||||
if permissions = Travis.app.get('currentUser.permissions')
|
if permissions = Travis.app.get('currentUser.permissions')
|
||||||
permissions.indexOf(@get('repo.id')) > -1
|
permissions.contains @get('repo.id')
|
||||||
).property('Travis.app.currentUser.permissions.length', 'repo.id')
|
).property('Travis.app.currentUser.permissions.length', 'repo.id')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user