fix study tour for member (not owner)

pull/4994/head
Thibault Duplessis 2019-04-18 13:07:58 +07:00
parent 94b16cf999
commit bdbf851be5
2 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,7 @@ lichess.studyTour = function(study) {
attachTo: ".study__members right",
when: onTab('members')
},
study.isContrib ? {
study.isOwner ? {
title: "Invite members",
text: "By clicking the <i data-icon='O'></i> button.<br>" +
"Then decide who can contribute or not.",

View File

@ -6,6 +6,7 @@ export function study(ctrl: AnalyseCtrl) {
window.lichess['studyTour']({
userId: ctrl.opts.userId,
isContrib: ctrl.study!.members.canContribute(),
isOwner: ctrl.study!.members.isOwner(),
setTab: (tab: Tab) => {
ctrl.study!.vm.tab(tab);
ctrl.redraw();