do not show admin drawer unless user has access

Fixes https://github.com/coralproject/talk/issues/1791
This commit is contained in:
Bryce Kahle
2018-10-08 13:02:37 -04:00
parent d0eca26d5b
commit 8b2dc3a46d
3 changed files with 15 additions and 7 deletions
+4
View File
@@ -30,6 +30,10 @@ module.exports = {
.waitForElementVisible('@signOutButton')
.click('@signOutButton');
},
login(user) {
this.expect.section('@login').to.be.visible;
return this.section.login.login(user);
},
navigateAndLogin(user) {
this.navigate().expect.section('@login').to.be.visible;
return this.section.login.login(user);